Class: Yello::Base

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

Direct Known Subclasses

Card, Checklist, List

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Base

Returns a new instance of Base.



5
6
7
# File 'lib/yello/base.rb', line 5

def initialize(name)
  @name = name 
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/yello/base.rb', line 3

def name
  @name
end

Instance Method Details

#attributesObject



9
10
11
# File 'lib/yello/base.rb', line 9

def attributes
  {'name'=>name} 
end