Class: Tracker
- Inherits:
-
Object
- Object
- Tracker
- Defined in:
- lib/tracker.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stories ⇒ Object
readonly
Returns the value of attribute stories.
Instance Method Summary collapse
- #extract_story_ids(commits_list) ⇒ Object
-
#initialize(tracker_ids, api_key) ⇒ Tracker
constructor
A new instance of Tracker.
- #load_stories(story_id_list = nil) ⇒ Object
- #story_obj(story_id) ⇒ Object
Constructor Details
#initialize(tracker_ids, api_key) ⇒ Tracker
Returns a new instance of Tracker.
6 7 8 9 10 11 |
# File 'lib/tracker.rb', line 6 def initialize(tracker_ids,api_key) raise("Missing tracker information") if (@api_key.empty? || @tracker_ids.empty?) @tag_pattern = STORY_TAG_PATTERN @stories = [] @story_ids = [] end |
Instance Attribute Details
#stories ⇒ Object (readonly)
Returns the value of attribute stories.
4 5 6 |
# File 'lib/tracker.rb', line 4 def stories @stories end |
Instance Method Details
#extract_story_ids(commits_list) ⇒ Object
12 13 14 |
# File 'lib/tracker.rb', line 12 def extract_story_ids(commits_list) raise("Must implement #extract_story_ids in #{self.class.to_s}") end |
#load_stories(story_id_list = nil) ⇒ Object
15 16 17 |
# File 'lib/tracker.rb', line 15 def load_stories(story_id_list = nil) raise("Must implement #load_stories in #{self.class.to_s}") end |
#story_obj(story_id) ⇒ Object
18 19 20 |
# File 'lib/tracker.rb', line 18 def story_obj(story_id) raise("Must implement #story_obj in #{self.class.to_s}") end |