Class: Peddler::APIs::ShippingV2::Weight
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::Weight
- Defined in:
- sig/peddler/apis/shipping_v2.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.
2031 2032 2033 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2031 def unit @unit end |
#value ⇒ Float (readonly)
Returns the value of attribute value.
2032 2033 2034 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2032 def value @value end |
Class Method Details
.[](unit:, value:) ⇒ Peddler::APIs::ShippingV2::Weight .[](arg0, arg1) ⇒ Peddler::APIs::ShippingV2::Weight
2024 2025 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2024
def self.[]: (unit: String, value: Float) -> Peddler::APIs::ShippingV2::Weight
| (String, Float) -> Peddler::APIs::ShippingV2::Weight
|
.members ⇒ [ :unit, :value ]
2027 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2027
def self.members: () -> [ :unit, :value ]
|
.new(unit:, value:) ⇒ Peddler::APIs::ShippingV2::Weight .new(arg0, arg1) ⇒ Peddler::APIs::ShippingV2::Weight
2022 2023 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2022
def self.new: (unit: String, value: Float) -> Peddler::APIs::ShippingV2::Weight
| (String, Float) -> Peddler::APIs::ShippingV2::Weight
|
.parse ⇒ Peddler::APIs::ShippingV2::Weight
2029 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2029
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::Weight
|
Instance Method Details
#members ⇒ [ :unit, :value ]
2034 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2034
def members: () -> [ :unit, :value ]
|
#to_h ⇒ { unit: String, value: Float }
2035 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 2035
def to_h: () -> { unit: String, value: Float }
|