class Multicash::Ammount

Constants

CURRENCIES
CURRENCY_FORMAT

Attributes

currency[RW]
errors[R]
value[RW]

Public Class Methods

new(value: 0.00, currency: 'BGN') click to toggle source
# File lib/multicash/ammount.rb, line 15
def initialize value: 0.00, currency: 'BGN'
  @value = value
  @currency = currency
  @errors = ActiveModel::Errors.new(self)
end