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