Class: Lighthouse::Project
- Defined in:
- lib/lighthouse/project.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
58 59 60 |
# File 'lib/lighthouse/project.rb', line 58 def bins( = {}) Bin.find(:all, :params => .update(:project_id => id)) end |
#changesets(options = {}) ⇒ Object
62 63 64 |
# File 'lib/lighthouse/project.rb', line 62 def changesets( = {}) Changeset.find(:all, :params => .update(:project_id => id)) end |
#memberships(options = {}) ⇒ Object
66 67 68 |
# File 'lib/lighthouse/project.rb', line 66 def memberships( = {}) ProjectMembership.find(:all, :params => .update(:project_id => id)) end |
#messages(options = {}) ⇒ Object
50 51 52 |
# File 'lib/lighthouse/project.rb', line 50 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
54 55 56 |
# File 'lib/lighthouse/project.rb', line 54 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tags(options = {}) ⇒ Object
70 71 72 |
# File 'lib/lighthouse/project.rb', line 70 def ( = {}) TagResource.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
46 47 48 |
# File 'lib/lighthouse/project.rb', line 46 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |