Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::MonetaryValue

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

Returns a new instance of MonetaryValue.



139
140
141
142
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 139

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

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



137
138
139
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 137

def amount
  @amount
end

#currencyObject (readonly)

Returns the value of attribute currency.



137
138
139
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 137

def currency
  @currency
end