Class: Todo
- Inherits:
-
Object
- Object
- Todo
- Defined in:
- lib/todo_analyser/todo.rb
Overview
TODOs Model
Instance Attribute Summary collapse
-
#completed ⇒ Object
readonly
Returns the value of attribute completed.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, completed) ⇒ Todo
constructor
A new instance of Todo.
Constructor Details
#initialize(title, completed) ⇒ Todo
Returns a new instance of Todo.
9 10 11 12 |
# File 'lib/todo_analyser/todo.rb', line 9 def initialize(title, completed) @title = title @completed = completed end |
Instance Attribute Details
#completed ⇒ Object (readonly)
Returns the value of attribute completed.
7 8 9 |
# File 'lib/todo_analyser/todo.rb', line 7 def completed @completed end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/todo_analyser/todo.rb', line 7 def title @title end |