Class: Exchanges::Nbp

Inherits:
Object
  • Object
show all
Includes:
Rates
Defined in:
lib/exchanges/nbp.rb

Constant Summary

Constants included from Rates

Rates::NBP

Instance Attribute Summary

Attributes included from Rates

#date, #selected_currencies

Instance Method Summary collapse

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