Class: BasecampAPI::TodoItem

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

Instance Method Summary collapse

Methods inherited from Resource

element_name, parent_resources, prefix, prefix_source

Instance Method Details

#comments(options = {}) ⇒ Object



329
330
331
# File 'lib/basecamp/basecamp.rb', line 329

def comments(options = {})
  @comments ||= Comment.find(:all, :params => options.merge(:todo_item_id => id))
end

#complete!Object



333
334
335
# File 'lib/basecamp/basecamp.rb', line 333

def complete!
  put(:complete)
end

#time_entries(options = {}) ⇒ Object



325
326
327
# File 'lib/basecamp/basecamp.rb', line 325

def time_entries(options = {})
  @time_entries ||= TimeEntry.find(:all, :params => options.merge(:todo_item_id => id))
end

#todo_list(options = {}) ⇒ Object



321
322
323
# File 'lib/basecamp/basecamp.rb', line 321

def todo_list(options = {})
  @todo_list ||= TodoList.find(todo_list_id, options)
end

#uncomplete!Object



337
338
339
# File 'lib/basecamp/basecamp.rb', line 337

def uncomplete!
  put(:uncomplete)
end