Class: Lighthouse::Project
- 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
- #bins(options = {}) ⇒ Object
- #changesets(options = {}) ⇒ Object
- #memberships(options = {}) ⇒ Object
- #messages(options = {}) ⇒ Object
- #milestones(options = {}) ⇒ Object
- #tags(options = {}) ⇒ Object
- #tickets(options = {}) ⇒ Object
Methods inherited from Base
Instance Method Details
#bins(options = {}) ⇒ Object
155 156 157 |
# File 'lib/lighthouse.rb', line 155 def bins( = {}) Bin.find(:all, :params => .update(:project_id => id)) end |
#changesets(options = {}) ⇒ Object
159 160 161 |
# File 'lib/lighthouse.rb', line 159 def changesets( = {}) Changeset.find(:all, :params => .update(:project_id => id)) end |
#memberships(options = {}) ⇒ Object
163 164 165 |
# File 'lib/lighthouse.rb', line 163 def memberships( = {}) ProjectMembership.find(:all, :params => .update(:project_id => id)) end |
#messages(options = {}) ⇒ Object
147 148 149 |
# File 'lib/lighthouse.rb', line 147 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
151 152 153 |
# File 'lib/lighthouse.rb', line 151 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tags(options = {}) ⇒ Object
167 168 169 |
# File 'lib/lighthouse.rb', line 167 def ( = {}) TagResource.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
143 144 145 |
# File 'lib/lighthouse.rb', line 143 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |