Class: List
- Inherits:
-
Object
- Object
- List
- Defined in:
- lib/clear/list.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ List
constructor
A new instance of List.
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
4 5 6 |
# File 'lib/clear/list.rb', line 4 def initialize tasks = [] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clear/list.rb', line 2 def id @id end |
#identifier ⇒ Object
Returns the value of attribute identifier.
2 3 4 |
# File 'lib/clear/list.rb', line 2 def identifier @identifier end |
#tasks ⇒ Object
Returns the value of attribute tasks.
2 3 4 |
# File 'lib/clear/list.rb', line 2 def tasks @tasks end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/clear/list.rb', line 2 def title @title end |