Class: Wunderlist::Reminder
- Inherits:
-
Object
- Object
- Wunderlist::Reminder
- Includes:
- Helper
- Defined in:
- lib/wunderlist/reminder.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Reminder
constructor
A new instance of Reminder.
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
#api ⇒ Object
Returns the value of attribute api.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def api @api end |
#created_at ⇒ Object
Returns the value of attribute created_at.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def created_at @created_at end |
#date ⇒ Object
Returns the value of attribute date.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def id @id end |
#revision ⇒ Object
Returns the value of attribute revision.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def revision @revision end |
#task_id ⇒ Object
Returns the value of attribute task_id.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def task_id @task_id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
9 10 11 |
# File 'lib/wunderlist/reminder.rb', line 9 def updated_at @updated_at end |