Class: Money
- Includes:
- Mongoize
- Defined in:
- lib/money/orm/generic.rb,
lib/money/mongoid/3x/money.rb,
lib/money/mongoid/core_ext/range.rb
Defined Under Namespace
Modules: Orm
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Mongoize
Class Method Details
.range(range, iso_code) ⇒ Object
16 17 18 |
# File 'lib/money/mongoid/core_ext/range.rb', line 16 def self.range range, iso_code ::MoneyRange.new range, iso_code end |
Instance Method Details
#__evolve_to_money__ ⇒ Object
81 82 83 |
# File 'lib/money/mongoid/3x/money.rb', line 81 def __evolve_to_money__ self end |
#exchange_to_currencies(currencies) ⇒ Object
85 86 87 |
# File 'lib/money/mongoid/3x/money.rb', line 85 def exchange_to_currencies(currencies) currencies.map {|currency| exchange_to(currency)} end |