Class: NbrbCurrency::RatesDocument
- Inherits:
-
Object
- Object
- NbrbCurrency::RatesDocument
- Defined in:
- lib/nbrb_currency/rates_document.rb
Instance Attribute Summary collapse
-
#rates ⇒ Object
readonly
Returns the value of attribute rates.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json_data) ⇒ RatesDocument
constructor
A new instance of RatesDocument.
Constructor Details
#initialize(json_data) ⇒ RatesDocument
Returns a new instance of RatesDocument.
7 8 9 10 11 |
# File 'lib/nbrb_currency/rates_document.rb', line 7 def initialize(json_data) @rates = {} @updated_at = nil parse(json_data) end |
Instance Attribute Details
#rates ⇒ Object (readonly)
Returns the value of attribute rates.
5 6 7 |
# File 'lib/nbrb_currency/rates_document.rb', line 5 def rates @rates end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/nbrb_currency/rates_document.rb', line 5 def updated_at @updated_at end |