Class: Range

Inherits:
Object show all
Defined in:
lib/money/mongoid/core_ext/range.rb

Instance Method Summary collapse

Instance Method Details

#dollarsObject



2
3
4
# File 'lib/money/mongoid/core_ext/range.rb', line 2

def dollars
  ::MoneyRange.new self, 'usd'
end

#eurosObject



6
7
8
# File 'lib/money/mongoid/core_ext/range.rb', line 6

def euros
  ::MoneyRange.new self, 'eur'
end

#to_currency(iso_code) ⇒ Object



10
11
12
# File 'lib/money/mongoid/core_ext/range.rb', line 10

def to_currency iso_code
  ::MoneyRange.new self, iso_code
end