Class: Ifin24::Models::Limit

Inherits:
Base
  • Object
show all
Defined in:
lib/ifin24/models/limit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/ifin24/models/limit.rb', line 4

def amount
  @amount
end

#maxObject

Returns the value of attribute max.



5
6
7
# File 'lib/ifin24/models/limit.rb', line 5

def max
  @max
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/ifin24/models/limit.rb', line 3

def name
  @name
end