Class: Everdone::TodoNote
- Inherits:
-
Object
- Object
- Everdone::TodoNote
- Defined in:
- lib/everdone/todoItem.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(todoist_note) ⇒ TodoNote
constructor
A new instance of TodoNote.
Constructor Details
#initialize(todoist_note) ⇒ TodoNote
Returns a new instance of TodoNote.
10 11 12 13 14 15 |
# File 'lib/everdone/todoItem.rb', line 10 def initialize(todoist_note) note = todoist_note @id = note['id'] @created = note['posted'] @content = note['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9 10 11 |
# File 'lib/everdone/todoItem.rb', line 9 def content @content end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
9 10 11 |
# File 'lib/everdone/todoItem.rb', line 9 def created @created end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/everdone/todoItem.rb', line 9 def id @id end |