Class: RailsClafer::GCard

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_clafer/gcard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min = 0, max = "*") ⇒ GCard

Returns a new instance of GCard.



4
5
6
7
# File 'lib/rails_clafer/gcard.rb', line 4

def initialize(min=0,max="*")
  @min = min
  @max = max
end

Instance Attribute Details

#maxObject

Returns the value of attribute max.



3
4
5
# File 'lib/rails_clafer/gcard.rb', line 3

def max
  @max
end

#minObject

Returns the value of attribute min.



3
4
5
# File 'lib/rails_clafer/gcard.rb', line 3

def min
  @min
end