Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::Weight
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::Weight
- Defined in:
- lib/shipengine/domain/rates/get_with_shipment_details.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.
148 149 150 151 |
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 148 def initialize(value:, unit:) @value = value @unit = unit end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
146 147 148 |
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 146 def unit @unit end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
146 147 148 |
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 146 def value @value end |