Class: Peddler::APIs::ShippingV1::Dimensions

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v1.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)


209
210
211
# File 'sig/peddler/apis/shipping_v1.rbs', line 209

def height
  @height
end

#lengthFloat (readonly)

Returns the value of attribute length.

Returns:

  • (Float)


210
211
212
# File 'sig/peddler/apis/shipping_v1.rbs', line 210

def length
  @length
end

#unitString (readonly)

Returns the value of attribute unit.

Returns:

  • (String)


211
212
213
# File 'sig/peddler/apis/shipping_v1.rbs', line 211

def unit
  @unit
end

#widthFloat (readonly)

Returns the value of attribute width.

Returns:

  • (Float)


212
213
214
# File 'sig/peddler/apis/shipping_v1.rbs', line 212

def width
  @width
end

Class Method Details

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

Overloads:



202
203
# File 'sig/peddler/apis/shipping_v1.rbs', line 202

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

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

Returns:

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


205
# File 'sig/peddler/apis/shipping_v1.rbs', line 205

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

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

Overloads:



200
201
# File 'sig/peddler/apis/shipping_v1.rbs', line 200

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

.parsePeddler::APIs::ShippingV1::Dimensions

Parameters:

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

Returns:



207
# File 'sig/peddler/apis/shipping_v1.rbs', line 207

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

Instance Method Details

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

Returns:

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


214
# File 'sig/peddler/apis/shipping_v1.rbs', line 214

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 })


215
# File 'sig/peddler/apis/shipping_v1.rbs', line 215

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