Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::MonetaryValue
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::MonetaryValue
- Defined in:
- lib/shipengine/domain/rates/get_with_shipment_details.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
Instance Method Summary collapse
-
#initialize(currency:, amount:) ⇒ MonetaryValue
constructor
A new instance of MonetaryValue.
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
#amount ⇒ Object (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 |
#currency ⇒ Object (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 |