Class: MoneyRange

Inherits:
DelegateDecorator
  • Object
show all
Defined in:
lib/money/mongoid/core_ext/range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range, iso_code) ⇒ MoneyRange

Returns a new instance of MoneyRange.



24
25
26
27
28
# File 'lib/money/mongoid/core_ext/range.rb', line 24

def initialize range, iso_code
  super(range)
  @range = range
  @iso_code = iso_code
end

Instance Attribute Details

#iso_codeObject (readonly)

Returns the value of attribute iso_code.



22
23
24
# File 'lib/money/mongoid/core_ext/range.rb', line 22

def iso_code
  @iso_code
end

#rangeObject (readonly)

Returns the value of attribute range.



22
23
24
# File 'lib/money/mongoid/core_ext/range.rb', line 22

def range
  @range
end