Class: ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::MonetaryValue

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(currency:, amount:) ⇒ MonetaryValue

Returns a new instance of MonetaryValue.



76
77
78
79
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 76

def initialize(currency:, amount:)
  @currency = currency
  @amount = amount
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



74
75
76
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 74

def amount
  @amount
end

#currencyObject (readonly)

Returns the value of attribute currency.



74
75
76
# File 'lib/shipengine/domain/labels/create_from_shipment_details.rb', line 74

def currency
  @currency
end