Class: Lighthouse::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/lighthouse/project.rb

Overview

Updating a Project

project = Lighthouse::Project.find(44)
project.name = "Lighthouse Issues"
project.public = false
project.save

Finding tickets

project = Lighthouse::Project.find(44)
project.tickets

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#bins(options = {}) ⇒ Object



58
59
60
# File 'lib/lighthouse/project.rb', line 58

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

#changesets(options = {}) ⇒ Object



62
63
64
# File 'lib/lighthouse/project.rb', line 62

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

#memberships(options = {}) ⇒ Object



66
67
68
# File 'lib/lighthouse/project.rb', line 66

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

#messages(options = {}) ⇒ Object



50
51
52
# File 'lib/lighthouse/project.rb', line 50

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

#milestones(options = {}) ⇒ Object



54
55
56
# File 'lib/lighthouse/project.rb', line 54

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

#tags(options = {}) ⇒ Object



70
71
72
# File 'lib/lighthouse/project.rb', line 70

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

#tickets(options = {}) ⇒ Object



46
47
48
# File 'lib/lighthouse/project.rb', line 46

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