Class: UnfuddleAPI::Project
- Defined in:
- lib/unfuddle/unfuddle-api.rb
Overview
Find projects
UnfuddleAPI::Project.find(:all) # find all projects for the current account.
UnfuddleAPI::Project.find(44) # find individual project by ID
Creating a Project
project = UnfuddleAPI::Project.new(:name => 'Ninja Whammy Jammy')
project.save
# => true
Updating a Project
project = UnfuddleAPI::Project.find(44)
project.name = "Lighthouse Issues"
project.public = false
project.save
Finding tickets
project = LighthouseAPI::Project.find(44)
project.tickets
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#messages(options = {}) ⇒ Object
117 118 119 |
# File 'lib/unfuddle/unfuddle-api.rb', line 117 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
121 122 123 |
# File 'lib/unfuddle/unfuddle-api.rb', line 121 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
113 114 115 |
# File 'lib/unfuddle/unfuddle-api.rb', line 113 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |