Class: Lighthouse::Tag

Inherits:
String
  • Object
show all
Defined in:
lib/lighthouse/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, project_id) ⇒ Tag

Returns a new instance of Tag.



8
9
10
11
# File 'lib/lighthouse/tag.rb', line 8

def initialize(s, project_id)
  self.project_id = project_id
  super(s)
end

Instance Attribute Details

#project_idObject

Returns the value of attribute project_id.



6
7
8
# File 'lib/lighthouse/tag.rb', line 6

def project_id
  @project_id
end

Instance Method Details

#tickets(options = {}) ⇒ Object



13
14
15
16
# File 'lib/lighthouse/tag.rb', line 13

def tickets(options = {})
  options[:project_id] ||= project_id
  Ticket.find(:all, :params => options.merge(prefix_options).update(:q => %{tagged:"#{self}"}))
end