Class: RailsClafer::GCard
- Inherits:
-
Object
- Object
- RailsClafer::GCard
- Defined in:
- lib/rails_clafer/gcard.rb
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize(min = 0, max = "*") ⇒ GCard
constructor
A new instance of GCard.
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
#max ⇒ Object
Returns the value of attribute max.
3 4 5 |
# File 'lib/rails_clafer/gcard.rb', line 3 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
3 4 5 |
# File 'lib/rails_clafer/gcard.rb', line 3 def min @min end |