Class: Peddler::APIs::ShippingV2::Dimensions

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

#heightFloat (readonly)

Returns the value of attribute height.

Returns:

  • (Float)


498
499
500
# File 'sig/peddler/apis/shipping_v2.rbs', line 498

def height
  @height
end

#lengthFloat (readonly)

Returns the value of attribute length.

Returns:

  • (Float)


499
500
501
# File 'sig/peddler/apis/shipping_v2.rbs', line 499

def length
  @length
end

#unitString (readonly)

Returns the value of attribute unit.

Returns:

  • (String)


500
501
502
# File 'sig/peddler/apis/shipping_v2.rbs', line 500

def unit
  @unit
end

#widthFloat (readonly)

Returns the value of attribute width.

Returns:

  • (Float)


501
502
503
# File 'sig/peddler/apis/shipping_v2.rbs', line 501

def width
  @width
end

Class Method Details

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

Overloads:



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

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

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

Returns:

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


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

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

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

Overloads:



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

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

.parsePeddler::APIs::ShippingV2::Dimensions

Parameters:

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

Returns:



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

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

Instance Method Details

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

Returns:

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


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

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

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

Returns:

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


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

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