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