mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
10 lines
135 B
Ruby
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
|