Class: Exchanges::Nbp
Constant Summary
Constants included from Rates
Instance Attribute Summary
Attributes included from Rates
Instance Method Summary collapse
-
#initialize(date, args) ⇒ Nbp
constructor
A new instance of Nbp.
Methods included from Rates
#codes, #filename, #published_at, #rates, #url, #xml
Constructor Details
#initialize(date, args) ⇒ Nbp
Returns a new instance of Nbp.
6 7 8 9 |
# File 'lib/exchanges/nbp.rb', line 6 def initialize(date, args) @date = date ||= Date.today @selected_currencies = args.nil? ? [] : args[:selected_currencies] end |