Class: Everdone::TodoNote

Inherits:
Object
  • Object
show all
Defined in:
lib/everdone/todoItem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



9
10
11
# File 'lib/everdone/todoItem.rb', line 9

def content
  @content
end

#createdObject (readonly)

Returns the value of attribute created.



9
10
11
# File 'lib/everdone/todoItem.rb', line 9

def created
  @created
end

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/everdone/todoItem.rb', line 9

def id
  @id
end