frankfurter/lib/currency.rb
2014-03-14 12:15:27 +00:00

10 lines
135 B
Ruby

class Currency < Sequel::Model
def self.last_date
order(:date).last.date
end
def to_hash
{ iso_code => rate }
end
end