Class: Peddler::APIs::ShippingV2::DocumentSize

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

#lengthFloat (readonly)

Returns the value of attribute length.

Returns:

  • (Float)


588
589
590
# File 'sig/peddler/apis/shipping_v2.rbs', line 588

def length
  @length
end

#unitString (readonly)

Returns the value of attribute unit.

Returns:

  • (String)


589
590
591
# File 'sig/peddler/apis/shipping_v2.rbs', line 589

def unit
  @unit
end

#widthFloat (readonly)

Returns the value of attribute width.

Returns:

  • (Float)


590
591
592
# File 'sig/peddler/apis/shipping_v2.rbs', line 590

def width
  @width
end

Class Method Details

.[](length:, unit:, width:) ⇒ Peddler::APIs::ShippingV2::DocumentSize .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ShippingV2::DocumentSize

Overloads:



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

def self.[]: (length: Float, unit: String, width: Float) -> Peddler::APIs::ShippingV2::DocumentSize
| (Float, String, Float) -> Peddler::APIs::ShippingV2::DocumentSize

.members[ :length, :unit, :width ]

Returns:

  • ([ :length, :unit, :width ])


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

def self.members: () -> [ :length, :unit, :width ]

.new(length:, unit:, width:) ⇒ Peddler::APIs::ShippingV2::DocumentSize .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ShippingV2::DocumentSize

Overloads:



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

def self.new: (length: Float, unit: String, width: Float) -> Peddler::APIs::ShippingV2::DocumentSize
| (Float, String, Float) -> Peddler::APIs::ShippingV2::DocumentSize

.parsePeddler::APIs::ShippingV2::DocumentSize

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :length, :unit, :width ]

Returns:

  • ([ :length, :unit, :width ])


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

def members: () -> [ :length, :unit, :width ]

#to_h{ length: Float, unit: String, width: Float }

Returns:

  • ({ length: Float, unit: String, width: Float })


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

def to_h: () -> { length: Float, unit: String, width: Float }