Class: Peddler::APIs::EasyShip20220323::Weight
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::EasyShip20220323::Weight
- Defined in:
- sig/peddler/apis/easy_ship_2022_03_23.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
-
.[] ⇒ Object
-
.members ⇒ [ :unit, :value ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::EasyShip20220323::Weight
Instance Method Summary collapse
Instance Attribute Details
#unit ⇒ String? (readonly)
Returns the value of attribute unit.
386 387 388 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 386 def unit @unit end |
#value ⇒ Float? (readonly)
Returns the value of attribute value.
387 388 389 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 387 def value @value end |
Class Method Details
.[](unit:, value:) ⇒ Peddler::APIs::EasyShip20220323::Weight .[](arg0, arg1) ⇒ Peddler::APIs::EasyShip20220323::Weight
379 380 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 379
def self.[]: (?unit: String?, ?value: Float?) -> Peddler::APIs::EasyShip20220323::Weight
| (String?, Float?) -> Peddler::APIs::EasyShip20220323::Weight
|
.members ⇒ [ :unit, :value ]
382 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 382
def self.members: () -> [ :unit, :value ]
|
.new(unit:, value:) ⇒ Peddler::APIs::EasyShip20220323::Weight .new(arg0, arg1) ⇒ Peddler::APIs::EasyShip20220323::Weight
377 378 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 377
def self.new: (?unit: String?, ?value: Float?) -> Peddler::APIs::EasyShip20220323::Weight
| (String?, Float?) -> Peddler::APIs::EasyShip20220323::Weight
|
.parse ⇒ Peddler::APIs::EasyShip20220323::Weight
384 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 384
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::EasyShip20220323::Weight
|
Instance Method Details
#members ⇒ [ :unit, :value ]
389 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 389
def members: () -> [ :unit, :value ]
|
#to_h ⇒ { unit: String?, value: Float? }
390 |
# File 'sig/peddler/apis/easy_ship_2022_03_23.rbs', line 390
def to_h: () -> { unit: String?, value: Float? }
|