Class: Tracker

Inherits:
Object
  • Object
show all
Defined in:
lib/tracker.rb

Direct Known Subclasses

PivotalTracker

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storiesObject (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