Class: Lighthouse::Tag
- Inherits:
-
String
- Object
- String
- Lighthouse::Tag
- Defined in:
- lib/lighthouse.rb
Instance Attribute Summary collapse
- #prefix_options ⇒ Object
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(s, project_id) ⇒ Tag
constructor
A new instance of Tag.
- #tickets(options = {}) ⇒ Object
Constructor Details
#initialize(s, project_id) ⇒ Tag
Returns a new instance of Tag.
343 344 345 346 |
# File 'lib/lighthouse.rb', line 343 def initialize(s, project_id) @project_id = project_id super(s) end |
Instance Attribute Details
#prefix_options ⇒ Object
348 349 350 |
# File 'lib/lighthouse.rb', line 348 def @prefix_options || {} end |
#project_id ⇒ Object
Returns the value of attribute project_id.
341 342 343 |
# File 'lib/lighthouse.rb', line 341 def project_id @project_id end |
Instance Method Details
#tickets(options = {}) ⇒ Object
352 353 354 355 |
# File 'lib/lighthouse.rb', line 352 def tickets( = {}) [:project_id] ||= @project_id Ticket.find(:all, :params => .merge().update(:q => %{tagged:"#{self}"})) end |