Class: KanbanpadAPI::Project
- Defined in:
- lib/kanbanpad/kanbanpad-api.rb
Overview
Find projects
KanbanpadAPI::Project.find(:all) # find all projects for the current account.
KanbanpadAPI::Project.find('7e2cad4b3cbe5954950c') # find individual project by slug
Finding tickets
project = KanbanpadAPI::Project.find('7e2cad4b3cbe5954950c')
project.tickets
Finding finished tickets from project
KanbanpadAPI::Task.finished('7e2cad4b3cbe5954950c')
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#comments(options = {}) ⇒ Object
67 68 69 |
# File 'lib/kanbanpad/kanbanpad-api.rb', line 67 def comments( = {}) ProjectComment.find(:all, :params => .update(:project_id => slug)) end |
#steps(options = {}) ⇒ Object
63 64 65 |
# File 'lib/kanbanpad/kanbanpad-api.rb', line 63 def steps( = {}) Step.find(:all, :params => .update(:project_id => slug)) end |
#tasks(slug, options = {}) ⇒ Object
59 60 61 |
# File 'lib/kanbanpad/kanbanpad-api.rb', line 59 def tasks(slug, = {}) Task.find(:all, :params => .update(:project_id => slug, :backlog => 'yes', :finished => 'yes')) end |