Class: NoteFormatter::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/note_formatter/note.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date) ⇒ Note

Returns a new instance of Note.



5
6
7
8
# File 'lib/note_formatter/note.rb', line 5

def initialize(date)
  @date = date
  @tasks = {}
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



3
4
5
# File 'lib/note_formatter/note.rb', line 3

def date
  @date
end

#tasksObject

Returns the value of attribute tasks.



3
4
5
# File 'lib/note_formatter/note.rb', line 3

def tasks
  @tasks
end