Class: Yello::Card

Inherits:
Base
  • Object
show all
Defined in:
lib/yello/card.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#name

Instance Method Summary collapse

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

#checklistsObject

Returns the value of attribute checklists.



6
7
8
# File 'lib/yello/card.rb', line 6

def checklists
  @checklists
end

#descObject

Returns the value of attribute desc.



6
7
8
# File 'lib/yello/card.rb', line 6

def desc
  @desc
end

Instance Method Details

#attributesObject



14
15
16
# File 'lib/yello/card.rb', line 14

def attributes
  super.merge('desc'=>desc)
end