Class: CurrencyConverter

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/currency_converter.rb

Class Method Summary collapse

Class Method Details

.add(currency, date, value, nominal) ⇒ Object



5
6
7
# File 'app/models/currency_converter.rb', line 5

def add(currency, date, value, nominal)
  create({ :nominal => nominal, :value => value, :date_req => date, :currency => currency})
end