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



155
156
157
# File 'lib/lighthouse.rb', line 155

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

#changesets(options = {}) ⇒ Object



159
160
161
# File 'lib/lighthouse.rb', line 159

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

#memberships(options = {}) ⇒ Object



163
164
165
# File 'lib/lighthouse.rb', line 163

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

#messages(options = {}) ⇒ Object



147
148
149
# File 'lib/lighthouse.rb', line 147

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

#milestones(options = {}) ⇒ Object



151
152
153
# File 'lib/lighthouse.rb', line 151

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

#tags(options = {}) ⇒ Object



167
168
169
# File 'lib/lighthouse.rb', line 167

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

#tickets(options = {}) ⇒ Object



143
144
145
# File 'lib/lighthouse.rb', line 143

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