Class: Lighthouse::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/lighthouse.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



131
132
133
# File 'lib/lighthouse.rb', line 131

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

#changesets(options = {}) ⇒ Object



135
136
137
# File 'lib/lighthouse.rb', line 135

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

#messages(options = {}) ⇒ Object



123
124
125
# File 'lib/lighthouse.rb', line 123

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

#milestones(options = {}) ⇒ Object



127
128
129
# File 'lib/lighthouse.rb', line 127

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

#tickets(options = {}) ⇒ Object



119
120
121
# File 'lib/lighthouse.rb', line 119

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