Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::Weight

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/rates/get_with_shipment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#unitObject (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

#valueObject (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