Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid_money/money.rb

Direct Known Subclasses

Money

Instance Method Summary collapse

Instance Method Details

#centObject



172
173
174
# File 'lib/mongoid_money/money.rb', line 172

def cent
  cents
end

#centsObject



176
177
178
# File 'lib/mongoid_money/money.rb', line 176

def cents
  Money.new_from_cents self
end

#dollarObject



164
165
166
# File 'lib/mongoid_money/money.rb', line 164

def dollar
  dollars
end

#dollarsObject



168
169
170
# File 'lib/mongoid_money/money.rb', line 168

def dollars
  Money.new_from_dollars self
end