Class: Yello::Card
Instance Attribute Summary collapse
-
#checklists ⇒ Object
Returns the value of attribute checklists.
-
#desc ⇒ Object
Returns the value of attribute desc.
Attributes inherited from Base
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(name, desc, checklists) ⇒ Card
constructor
A new instance of Card.
Constructor Details
#initialize(name, desc, checklists) ⇒ Card
Returns a new instance of Card.
8 9 10 11 12 |
# File 'lib/yello/card.rb', line 8 def initialize(name, desc, checklists) super(name) @desc = desc @checklists = checklists end |
Instance Attribute Details
#checklists ⇒ Object
Returns the value of attribute checklists.
6 7 8 |
# File 'lib/yello/card.rb', line 6 def checklists @checklists end |
#desc ⇒ Object
Returns the value of attribute desc.
6 7 8 |
# File 'lib/yello/card.rb', line 6 def desc @desc end |
Instance Method Details
#attributes ⇒ Object
14 15 16 |
# File 'lib/yello/card.rb', line 14 def attributes super.merge('desc'=>desc) end |