Class: CurrencyConverter
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CurrencyConverter
- 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 |