Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/money_attribute/core_ext.rb

Overview

:nodoc

Instance Method Summary collapse

Instance Method Details

#dollarsObject Also known as: dollar



7
# File 'lib/money_attribute/core_ext.rb', line 7

def dollars = Mint.money(self, 'USD')

#eurosObject 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)