Class: ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::MonetaryValue
- Inherits:
-
Object
- Object
- ShipEngine::Domain::Labels::CreateFromShipmentDetails::Response::MonetaryValue
- Defined in:
- lib/shipengine/domain/labels/create_from_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.
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
#amount ⇒ Object (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 |
#currency ⇒ Object (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 |