frankfurter/lib/currency.rb

10 lines
135 B
Ruby
Raw Normal View History

2012-11-20 17:36:12 +01:00
class Currency < Sequel::Model
def self.last_date
order(:date).last.date
end
def to_hash
{ iso_code => rate }
end
end