Class: Lighthouse::Project
- Defined in:
- lib/fresnel/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 Attribute Summary collapse
-
#nr_of_open_tickets_assigned_to_me ⇒ Object
Returns the value of attribute nr_of_open_tickets_assigned_to_me.
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 Attribute Details
#nr_of_open_tickets_assigned_to_me ⇒ Object
Returns the value of attribute nr_of_open_tickets_assigned_to_me.
143 144 145 |
# File 'lib/fresnel/lighthouse.rb', line 143 def nr_of_open_tickets_assigned_to_me @nr_of_open_tickets_assigned_to_me end |
Instance Method Details
#bins(options = {}) ⇒ Object
157 158 159 |
# File 'lib/fresnel/lighthouse.rb', line 157 def bins( = {}) Bin.find(:all, :params => .update(:project_id => id)) end |
#changesets(options = {}) ⇒ Object
161 162 163 |
# File 'lib/fresnel/lighthouse.rb', line 161 def changesets( = {}) Changeset.find(:all, :params => .update(:project_id => id)) end |
#memberships(options = {}) ⇒ Object
165 166 167 |
# File 'lib/fresnel/lighthouse.rb', line 165 def memberships( = {}) ProjectMembership.find(:all, :params => .update(:project_id => id)) end |
#messages(options = {}) ⇒ Object
149 150 151 |
# File 'lib/fresnel/lighthouse.rb', line 149 def ( = {}) Message.find(:all, :params => .update(:project_id => id)) end |
#milestones(options = {}) ⇒ Object
153 154 155 |
# File 'lib/fresnel/lighthouse.rb', line 153 def milestones( = {}) Milestone.find(:all, :params => .update(:project_id => id)) end |
#tags(options = {}) ⇒ Object
169 170 171 |
# File 'lib/fresnel/lighthouse.rb', line 169 def ( = {}) TagResource.find(:all, :params => .update(:project_id => id)) end |
#tickets(options = {}) ⇒ Object
145 146 147 |
# File 'lib/fresnel/lighthouse.rb', line 145 def tickets( = {}) Ticket.find(:all, :params => .update(:project_id => id)) end |