Class: NoteFormatter::Note
- Inherits:
-
Object
- Object
- NoteFormatter::Note
- Defined in:
- lib/note_formatter/note.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Instance Method Summary collapse
-
#initialize(date) ⇒ Note
constructor
A new instance of Note.
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
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/note_formatter/note.rb', line 3 def date @date end |
#tasks ⇒ Object
Returns the value of attribute tasks.
3 4 5 |
# File 'lib/note_formatter/note.rb', line 3 def tasks @tasks end |