Class: Peddler::APIs::ShippingV1::Weight
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV1::Weight
- Defined in:
- sig/peddler/apis/shipping_v1.rbs
Instance Attribute Summary collapse
-
#unit ⇒ String
readonly
Returns the value of attribute unit.
-
#value ⇒ Float
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#unit ⇒ String (readonly)
Returns the value of attribute unit.
770 771 772 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 770 def unit @unit end |
#value ⇒ Float (readonly)
Returns the value of attribute value.
771 772 773 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 771 def value @value end |
Class Method Details
.[](unit:, value:) ⇒ Peddler::APIs::ShippingV1::Weight .[](arg0, arg1) ⇒ Peddler::APIs::ShippingV1::Weight
763 764 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 763
def self.[]: (unit: String, value: Float) -> Peddler::APIs::ShippingV1::Weight
| (String, Float) -> Peddler::APIs::ShippingV1::Weight
|
.members ⇒ [ :unit, :value ]
766 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 766
def self.members: () -> [ :unit, :value ]
|
.new(unit:, value:) ⇒ Peddler::APIs::ShippingV1::Weight .new(arg0, arg1) ⇒ Peddler::APIs::ShippingV1::Weight
761 762 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 761
def self.new: (unit: String, value: Float) -> Peddler::APIs::ShippingV1::Weight
| (String, Float) -> Peddler::APIs::ShippingV1::Weight
|
.parse ⇒ Peddler::APIs::ShippingV1::Weight
768 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 768
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV1::Weight
|
Instance Method Details
#members ⇒ [ :unit, :value ]
773 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 773
def members: () -> [ :unit, :value ]
|
#to_h ⇒ { unit: String, value: Float }
774 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 774
def to_h: () -> { unit: String, value: Float }
|