Class: ShipEngine::Domain::Labels::CreateFromRate::Response::Weight
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Labels::CreateFromRate::Response::Weight
- Defined in:
- lib/shipengine/domain/labels/create_from_rate.rb
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, unit:) ⇒ Weight
constructor
A new instance of Weight.
Constructor Details
#initialize(value:, unit:) ⇒ Weight
Returns a new instance of Weight.
138 139 140 141 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 138 def initialize(value:, unit:) @value = value @unit = unit end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
136 137 138 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 136 def unit @unit end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
136 137 138 |
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 136 def value @value end |