Class: RTM::TaskSeries::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/rtmilk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addedObject

Returns the value of attribute added.



131
132
133
# File 'lib/rtmilk.rb', line 131

def added
  @added
end

#completedObject

Returns the value of attribute completed.



131
132
133
# File 'lib/rtmilk.rb', line 131

def completed
  @completed
end

#deletedObject

Returns the value of attribute deleted.



131
132
133
# File 'lib/rtmilk.rb', line 131

def deleted
  @deleted
end

#dueObject

Returns the value of attribute due.



131
132
133
# File 'lib/rtmilk.rb', line 131

def due
  @due
end

#estimateObject

Returns the value of attribute estimate.



131
132
133
# File 'lib/rtmilk.rb', line 131

def estimate
  @estimate
end

#has_due_timeObject

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

#idObject

Returns the value of attribute id.



131
132
133
# File 'lib/rtmilk.rb', line 131

def id
  @id
end

#postponedObject

Returns the value of attribute postponed.



131
132
133
# File 'lib/rtmilk.rb', line 131

def postponed
  @postponed
end

#priorityObject

Returns the value of attribute priority.



131
132
133
# File 'lib/rtmilk.rb', line 131

def priority
  @priority
end