Class: Lighthouse::Project

Inherits:
Base
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Attribute Details

#nr_of_open_tickets_assigned_to_meObject

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(options = {})
  Bin.find(:all, :params => options.update(:project_id => id))
end

#changesets(options = {}) ⇒ Object



161
162
163
# File 'lib/fresnel/lighthouse.rb', line 161

def changesets(options = {})
  Changeset.find(:all, :params => options.update(:project_id => id))
end

#memberships(options = {}) ⇒ Object



165
166
167
# File 'lib/fresnel/lighthouse.rb', line 165

def memberships(options = {})
  ProjectMembership.find(:all, :params => options.update(:project_id => id))
end

#messages(options = {}) ⇒ Object



149
150
151
# File 'lib/fresnel/lighthouse.rb', line 149

def messages(options = {})
  Message.find(:all, :params => options.update(:project_id => id))
end

#milestones(options = {}) ⇒ Object



153
154
155
# File 'lib/fresnel/lighthouse.rb', line 153

def milestones(options = {})
  Milestone.find(:all, :params => options.update(:project_id => id))
end

#tags(options = {}) ⇒ Object



169
170
171
# File 'lib/fresnel/lighthouse.rb', line 169

def tags(options = {})
  TagResource.find(:all, :params => options.update(:project_id => id))
end

#tickets(options = {}) ⇒ Object



145
146
147
# File 'lib/fresnel/lighthouse.rb', line 145

def tickets(options = {})
  Ticket.find(:all, :params => options.update(:project_id => id))
end