Class: Peddler::APIs::ShippingV2::Dimensions
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::Dimensions
- Defined in:
- sig/peddler/apis/shipping_v2.rbs
Instance Attribute Summary collapse
-
#height ⇒ Float
readonly
Returns the value of attribute height.
-
#length ⇒ Float
readonly
Returns the value of attribute length.
-
#unit ⇒ String
readonly
Returns the value of attribute unit.
-
#width ⇒ Float
readonly
Returns the value of attribute width.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :height, :length, :unit, :width ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV2::Dimensions
Instance Method Summary collapse
-
#members ⇒ [ :height, :length, :unit, :width ]
-
#to_h ⇒ { height: Float, length: Float, unit: String, width: Float }
Instance Attribute Details
#height ⇒ Float (readonly)
Returns the value of attribute height.
498 499 500 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 498 def height @height end |
#length ⇒ Float (readonly)
Returns the value of attribute length.
499 500 501 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 499 def length @length end |
#unit ⇒ String (readonly)
Returns the value of attribute unit.
500 501 502 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 500 def unit @unit end |
#width ⇒ Float (readonly)
Returns the value of attribute width.
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
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 ]
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
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
|
.parse ⇒ Peddler::APIs::ShippingV2::Dimensions
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 ]
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 }
504 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 504
def to_h: () -> { height: Float, length: Float, unit: String, width: Float }
|