Class: LockstepSdk::BulkCurrencyConversionModel
- Inherits:
-
Object
- Object
- LockstepSdk::BulkCurrencyConversionModel
- Defined in:
- lib/lockstep_sdk/models/bulk_currency_conversion_model.rb
Overview
Input format used for bulk conversion route
Instance Attribute Summary collapse
-
#date ⇒ Date
The date for the currency rate.
-
#source_currency ⇒ String
The currency code This will be validated by the /api/v1/currencies data set.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ BulkCurrencyConversionModel
constructor
Initialize the BulkCurrencyConversionModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ BulkCurrencyConversionModel
Initialize the BulkCurrencyConversionModel using the provided prototype
24 25 26 27 |
# File 'lib/lockstep_sdk/models/bulk_currency_conversion_model.rb', line 24 def initialize(params = {}) @date = params.dig(:date) @source_currency = params.dig(:source_currency) end |
Instance Attribute Details
#date ⇒ Date
Returns The date for the currency rate.
30 31 32 |
# File 'lib/lockstep_sdk/models/bulk_currency_conversion_model.rb', line 30 def date @date end |
#source_currency ⇒ String
Returns The currency code This will be validated by the /api/v1/currencies data set.
32 33 34 |
# File 'lib/lockstep_sdk/models/bulk_currency_conversion_model.rb', line 32 def source_currency @source_currency end |