Class: CBR::Daily::Collection

Inherits:
Base
  • Object
show all
Defined in:
lib/cbr/daily/collection.rb

Instance Method Summary collapse

Methods inherited from Base

#to_hash

Instance Method Details

#[](code) ⇒ Object



14
15
16
# File 'lib/cbr/daily/collection.rb', line 14

def [](code)
  valutes.select{|v| v.char_code == code.to_s.to_s.upcase }.first
end

#dateObject



7
8
9
# File 'lib/cbr/daily/collection.rb', line 7

def date
  Date.parse(@date)
end