Class: Lighthouse::Project

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



133
134
135
# File 'lib/helm/lighthouse.rb', line 133

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

#changesets(options = {}) ⇒ Object



137
138
139
# File 'lib/helm/lighthouse.rb', line 137

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

#messages(options = {}) ⇒ Object



125
126
127
# File 'lib/helm/lighthouse.rb', line 125

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

#milestones(options = {}) ⇒ Object



129
130
131
# File 'lib/helm/lighthouse.rb', line 129

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

#tickets(options = {}) ⇒ Object



121
122
123
# File 'lib/helm/lighthouse.rb', line 121

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

#to_sObject



141
142
143
# File 'lib/helm/lighthouse.rb', line 141

def to_s
  name
end