Class: UnfuddleAPI::Project

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

inherited

Instance Method Details

#messages(options = {}) ⇒ Object



117
118
119
# File 'lib/unfuddle/unfuddle-api.rb', line 117

def messages(options = {})
  Message.find(:all, :params => options.update(:project_id => id))
end

#milestones(options = {}) ⇒ Object



121
122
123
# File 'lib/unfuddle/unfuddle-api.rb', line 121

def milestones(options = {})
  Milestone.find(:all, :params => options.update(:project_id => id))
end

#tickets(options = {}) ⇒ Object



113
114
115
# File 'lib/unfuddle/unfuddle-api.rb', line 113

def tickets(options = {})
  Ticket.find(:all, :params => options.update(:project_id => id))
end