Class: Lighthouse::Project
- 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
- #bins(options = {}) ⇒ Object
- #changesets(options = {}) ⇒ Object
- #messages(options = {}) ⇒ Object
- #milestones(options = {}) ⇒ Object
- #tickets(options = {}) ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
Instance Method Details
#bins(options = {}) ⇒ Object
133 134 135 |
# File 'lib/helm/lighthouse.rb', line 133 def bins( = {}) Bin.find(:all, :params => .update(:project_id => id)) end |
#changesets(options = {}) ⇒ Object
137 138 139 |
# File 'lib/helm/lighthouse.rb', line 137 def changesets( = {}) Changeset.find(:all, :params => .update(:project_id => id)) end |
#messages(options = {}) ⇒ Object
125 126 127 |
# File 'lib/helm/lighthouse.rb', line 125 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
129 130 131 |
# File 'lib/helm/lighthouse.rb', line 129 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
121 122 123 |
# File 'lib/helm/lighthouse.rb', line 121 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |
#to_s ⇒ Object
141 142 143 |
# File 'lib/helm/lighthouse.rb', line 141 def to_s name end |