Class: Tracker::RubyForge
- Inherits:
-
Object
- Object
- Tracker::RubyForge
- Defined in:
- lib/tracker/rubyforge.rb
Defined Under Namespace
Classes: SubTracker
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, project) ⇒ RubyForge
constructor
A new instance of RubyForge.
- #issue(identifier) ⇒ Object
Constructor Details
#initialize(uri, project) ⇒ RubyForge
Returns a new instance of RubyForge.
5 6 7 |
# File 'lib/tracker/rubyforge.rb', line 5 def initialize(uri, project) @uri, @project = uri, project end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
3 4 5 |
# File 'lib/tracker/rubyforge.rb', line 3 def project @project end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/tracker/rubyforge.rb', line 3 def uri @uri end |
Instance Method Details
#issue(identifier) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/tracker/rubyforge.rb', line 9 def issue(identifier) sub_trackers = atids.collect {|atid| SubTracker.new(self, atid)} sub_trackers.each do |sub_tracker| issue = sub_tracker.issue(identifier) return issue unless issue.nil? end nil end |