Class: KanbanpadAPI::Project

Inherits:
Base
  • Object
show all
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

inherited

Instance Method Details

#comments(options = {}) ⇒ Object



67
68
69
# File 'lib/kanbanpad/kanbanpad-api.rb', line 67

def comments(options = {})
  ProjectComment.find(:all, :params => options.update(:project_id => slug))
end

#steps(options = {}) ⇒ Object



63
64
65
# File 'lib/kanbanpad/kanbanpad-api.rb', line 63

def steps(options = {})
  Step.find(:all, :params => options.update(:project_id => slug))
end

#tasks(slug, options = {}) ⇒ Object



59
60
61
# File 'lib/kanbanpad/kanbanpad-api.rb', line 59

def tasks(slug, options = {}) 
  Task.find(:all, :params => options.update(:project_id => slug, :backlog => 'yes', :finished => 'yes'))
end