Class: Ifin24::Models::Limit
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#max ⇒ Object
Returns the value of attribute max.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Limit
constructor
A new instance of Limit.
Constructor Details
#initialize(attributes = {}) ⇒ Limit
Returns a new instance of Limit.
7 8 9 10 11 |
# File 'lib/ifin24/models/limit.rb', line 7 def initialize(attributes = {}) super(attributes) @amount ||= 0 @max ||= 0 end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/ifin24/models/limit.rb', line 4 def amount @amount end |
#max ⇒ Object
Returns the value of attribute max.
5 6 7 |
# File 'lib/ifin24/models/limit.rb', line 5 def max @max end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ifin24/models/limit.rb', line 3 def name @name end |