Class: RTM::TaskSeries::Task
- Inherits:
-
Object
- Object
- RTM::TaskSeries::Task
- Defined in:
- lib/rtmilk.rb
Instance Attribute Summary collapse
-
#added ⇒ Object
Returns the value of attribute added.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#due ⇒ Object
Returns the value of attribute due.
-
#estimate ⇒ Object
Returns the value of attribute estimate.
-
#has_due_time ⇒ Object
Returns the value of attribute has_due_time.
-
#id ⇒ Object
Returns the value of attribute id.
-
#postponed ⇒ Object
Returns the value of attribute postponed.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
-
#initialize(h) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(h) ⇒ Task
Returns a new instance of Task.
134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/rtmilk.rb', line 134 def initialize(h) @id = h['id'] if h['id'] @due = h['due'] if h['due'] @has_due_time = h['has_due_time'] == '1' if h['has_due_time'] @added = h['added'] if h['added'] @completed = h['completed'] if h['completed'] @deleted = h['deleted'] if h['deleted'] @priority = h['priority'] if h['priority'] @postponed = h['postponed'] if h['postponed'] @estimate = h['estimate'] if h['estimate'] end |
Instance Attribute Details
#added ⇒ Object
Returns the value of attribute added.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def added @added end |
#completed ⇒ Object
Returns the value of attribute completed.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def completed @completed end |
#deleted ⇒ Object
Returns the value of attribute deleted.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def deleted @deleted end |
#due ⇒ Object
Returns the value of attribute due.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def due @due end |
#estimate ⇒ Object
Returns the value of attribute estimate.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def estimate @estimate end |
#has_due_time ⇒ Object
Returns the value of attribute has_due_time.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def has_due_time @has_due_time end |
#id ⇒ Object
Returns the value of attribute id.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def id @id end |
#postponed ⇒ Object
Returns the value of attribute postponed.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def postponed @postponed end |
#priority ⇒ Object
Returns the value of attribute priority.
131 132 133 |
# File 'lib/rtmilk.rb', line 131 def priority @priority end |