Class: Todo

Inherits:
Object
  • Object
show all
Defined in:
lib/todo_analyser/todo.rb

Overview

TODOs Model

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#completedObject (readonly)

Returns the value of attribute completed.



7
8
9
# File 'lib/todo_analyser/todo.rb', line 7

def completed
  @completed
end

#titleObject (readonly)

Returns the value of attribute title.



7
8
9
# File 'lib/todo_analyser/todo.rb', line 7

def title
  @title
end