Class: Wunderlist::TaskComment

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/wunderlist/task_comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#to_hash

Constructor Details

#initialize(options = {}) ⇒ TaskComment

Returns a new instance of TaskComment.



12
13
14
15
16
17
18
19
20
# File 'lib/wunderlist/task_comment.rb', line 12

def initialize(options = {})
  @api = options['api']
  @id = options['id']
  @task_id = options['task_id']
  @revision = options['revision']
  @text = options['text']
  @type = options['type']
  @created_at = options['created_at']
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



9
10
11
# File 'lib/wunderlist/task_comment.rb', line 9

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/wunderlist/task_comment.rb', line 9

def id
  @id
end

#revisionObject (readonly)

Returns the value of attribute revision.



9
10
11
# File 'lib/wunderlist/task_comment.rb', line 9

def revision
  @revision
end

#task_idObject (readonly)

Returns the value of attribute task_id.



9
10
11
# File 'lib/wunderlist/task_comment.rb', line 9

def task_id
  @task_id
end

#textObject

Returns the value of attribute text.



8
9
10
# File 'lib/wunderlist/task_comment.rb', line 8

def text
  @text
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/wunderlist/task_comment.rb', line 8

def type
  @type
end

Instance Method Details

#saveObject



22
23
# File 'lib/wunderlist/task_comment.rb', line 22

def save
end