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
- #messages(options = {}) ⇒ Object
- #milestones(options = {}) ⇒ Object
- #tickets(options = {}) ⇒ Object
Methods inherited from Base
Instance Method Details
#bins(options = {}) ⇒ Object
131 132 133 |
# File 'lib/lighthouse.rb', line 131 def bins( = {}) Bin.find(:all, :params => .update(:project_id => id)) end |
#changesets(options = {}) ⇒ Object
135 136 137 |
# File 'lib/lighthouse.rb', line 135 def changesets( = {}) Changeset.find(:all, :params => .update(:project_id => id)) end |
#messages(options = {}) ⇒ Object
123 124 125 |
# File 'lib/lighthouse.rb', line 123 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
127 128 129 |
# File 'lib/lighthouse.rb', line 127 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
119 120 121 |
# File 'lib/lighthouse.rb', line 119 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |