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

#create, #destroy, #model_name, #path, #plural_model_name, #resource_path, #save, #to_hash, #update

Constructor Details

#initialize(attrs = {}) ⇒ TaskComment

Returns a new instance of TaskComment.



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

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

Instance Attribute Details

#apiObject

Returns the value of attribute api.



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

def api
  @api
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#revisionObject

Returns the value of attribute revision.



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

def revision
  @revision
end

#task_idObject

Returns the value of attribute task_id.



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

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