lib/tracker_api/client.rb in tracker_api-0.2.4 vs lib/tracker_api/client.rb in tracker_api-0.2.5
- old
+ new
@@ -111,9 +111,17 @@
# @return [TrackerApi::Resources::Me]
def me
Endpoints::Me.new(self).get
end
+ # Get information about a client story without knowing what project the story belongs to
+ #
+ # @param [String] story_id
+ # @return [TrackerApi::Resources::Story]
+ def story(story_id)
+ Endpoints::Story.new(self).get_story(story_id)
+ end
+
private
def parse_query_and_convenience_headers(path, options)
raise 'Path can not be blank.' if path.to_s.empty?