Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/minting/money_attribute/core_ext.rb
Overview
:nodoc
Instance Method Summary collapse
- #dollars ⇒ Object (also: #dollar)
- #euros ⇒ Object (also: #euro)
- #to_money(currency) ⇒ Object (also: #mint)
Instance Method Details
#dollars ⇒ Object Also known as: dollar
9 10 11 |
# File 'lib/minting/money_attribute/core_ext.rb', line 9 def dollars Mint.money(self, 'USD') end |
#euros ⇒ Object Also known as: euro
13 14 15 |
# File 'lib/minting/money_attribute/core_ext.rb', line 13 def euros Mint.money(self, 'EUR') end |
#to_money(currency) ⇒ Object Also known as: mint
5 6 7 |
# File 'lib/minting/money_attribute/core_ext.rb', line 5 def to_money(currency) Mint.money(self, currency) end |