Class: Wunderlist::Reminder

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/wunderlist/reminder.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 = {}) ⇒ Reminder

Returns a new instance of Reminder.



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

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

Instance Attribute Details

#apiObject

Returns the value of attribute api.



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

def api
  @api
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#revisionObject

Returns the value of attribute revision.



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

def revision
  @revision
end

#task_idObject

Returns the value of attribute task_id.



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

def task_id
  @task_id
end

#updated_atObject

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end