Class: Range
Instance Method Summary collapse
Instance Method Details
#dollars ⇒ Object
2 3 4 |
# File 'lib/money/mongoid/core_ext/range.rb', line 2 def dollars ::MoneyRange.new self, 'usd' end |
#euros ⇒ Object
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 |