Class: Peddler::APIs::ShippingV2::PackageDocument

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v2.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentsString (readonly)

Returns the value of attribute contents.

Returns:

  • (String)


1434
1435
1436
# File 'sig/peddler/apis/shipping_v2.rbs', line 1434

def contents
  @contents
end

#formatString (readonly)

Returns the value of attribute format.

Returns:

  • (String)


1435
1436
1437
# File 'sig/peddler/apis/shipping_v2.rbs', line 1435

def format
  @format
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


1436
1437
1438
# File 'sig/peddler/apis/shipping_v2.rbs', line 1436

def type
  @type
end

Class Method Details

.[](contents:, format:, type:) ⇒ Peddler::APIs::ShippingV2::PackageDocument .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ShippingV2::PackageDocument

Overloads:



1427
1428
# File 'sig/peddler/apis/shipping_v2.rbs', line 1427

def self.[]: (contents: String, format: String, type: String) -> Peddler::APIs::ShippingV2::PackageDocument
| (String, String, String) -> Peddler::APIs::ShippingV2::PackageDocument

.members[ :contents, :format, :type ]

Returns:

  • ([ :contents, :format, :type ])


1430
# File 'sig/peddler/apis/shipping_v2.rbs', line 1430

def self.members: () -> [ :contents, :format, :type ]

.new(contents:, format:, type:) ⇒ Peddler::APIs::ShippingV2::PackageDocument .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ShippingV2::PackageDocument

Overloads:



1425
1426
# File 'sig/peddler/apis/shipping_v2.rbs', line 1425

def self.new: (contents: String, format: String, type: String) -> Peddler::APIs::ShippingV2::PackageDocument
| (String, String, String) -> Peddler::APIs::ShippingV2::PackageDocument

.parsePeddler::APIs::ShippingV2::PackageDocument

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



1432
# File 'sig/peddler/apis/shipping_v2.rbs', line 1432

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::PackageDocument

Instance Method Details

#members[ :contents, :format, :type ]

Returns:

  • ([ :contents, :format, :type ])


1438
# File 'sig/peddler/apis/shipping_v2.rbs', line 1438

def members: () -> [ :contents, :format, :type ]

#to_h{ contents: String, format: String, type: String }

Returns:

  • ({ contents: String, format: String, type: String })


1439
# File 'sig/peddler/apis/shipping_v2.rbs', line 1439

def to_h: () -> { contents: String, format: String, type: String }