Class: Allorails::Price
- Inherits:
-
Base
- Object
- Response::ApiResponse
- Response::ApiMappingResponse
- Base
- Allorails::Price
- Defined in:
- lib/allorails/response/model.rb
Overview
Class providing object mapping of a price item
Instance Attribute Summary
Attributes inherited from Response::ApiMappingResponse
Instance Method Summary collapse
-
#amount ⇒ Object
Provides the amount @return (float) amount.
-
#currency ⇒ Object
Provides the currency @return (string) currency (three characters).
-
#exchange ⇒ Object
Provides the day’s exchange rate @return (float) exchange rate.
-
#reference_amount ⇒ Object
Provides the amount in the reference currency @return (float) reference amount.
-
#reference_currency ⇒ Object
Provides the reference currency @return (string) reference currency.
Methods inherited from Base
Methods inherited from Response::ApiMappingResponse
#_verify, attribute_reader, #initialize, node_reader
Methods inherited from Response::ApiResponse
Constructor Details
This class inherits a constructor from Allorails::Base
Instance Method Details
#amount ⇒ Object
Provides the amount
@return (float) amount
102 |
# File 'lib/allorails/response/model.rb', line 102 attribute_reader :amount, Float |
#currency ⇒ Object
Provides the currency
@return (string) currency (three characters)
98 |
# File 'lib/allorails/response/model.rb', line 98 attribute_reader :currency |
#exchange ⇒ Object
Provides the day’s exchange rate
@return (float) exchange rate
106 |
# File 'lib/allorails/response/model.rb', line 106 attribute_reader :exchange, Float |
#reference_amount ⇒ Object
Provides the amount in the reference currency
@return (float) reference amount
114 |
# File 'lib/allorails/response/model.rb', line 114 attribute_reader :reference_amount, Float |
#reference_currency ⇒ Object
Provides the reference currency
@return (string) reference currency
110 |
# File 'lib/allorails/response/model.rb', line 110 attribute_reader :reference_currency |