Class: MoneyRange
- Defined in:
- lib/money/mongoid/core_ext/range.rb
Instance Attribute Summary collapse
-
#iso_code ⇒ Object
readonly
Returns the value of attribute iso_code.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(range, iso_code) ⇒ MoneyRange
constructor
A new instance of MoneyRange.
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_code ⇒ Object (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 |
#range ⇒ Object (readonly)
Returns the value of attribute range.
22 23 24 |
# File 'lib/money/mongoid/core_ext/range.rb', line 22 def range @range end |