Class: ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::Weight

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/labels/create_from_shipment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, unit:) ⇒ Weight

Returns a new instance of Weight.



138
139
140
141
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 138

def initialize(value:, unit:)
  @value = value
  @unit = unit
end

Instance Attribute Details

#unitObject (readonly)

Returns the value of attribute unit.



136
137
138
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 136

def unit
  @unit
end

#valueObject (readonly)

Returns the value of attribute value.



136
137
138
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 136

def value
  @value
end