Class: Gera::CurrencyRateHistoryIntervalFilter

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Defined in:
app/models/gera/currency_rate_history_interval_filter.rb

Instance Method Summary collapse

Instance Method Details

#currency_fromObject



14
15
16
# File 'app/models/gera/currency_rate_history_interval_filter.rb', line 14

def currency_from
  Money::Currency.find cur_from
end

#currency_toObject



18
19
20
# File 'app/models/gera/currency_rate_history_interval_filter.rb', line 18

def currency_to
  Money::Currency.find cur_to
end

#persisted?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/gera/currency_rate_history_interval_filter.rb', line 26

def persisted?
  false
end

#to_paramObject



22
23
24
# File 'app/models/gera/currency_rate_history_interval_filter.rb', line 22

def to_param
  to_hash
end