Sha256: 02554faf80f95fe3ae2e4738f86061724c6db592d21ba602735d9c6394cead8a
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
module TrackerApi module Endpoints class Story attr_accessor :client def initialize(client) @client = client end def get(project_id, id) data = client.get("/projects/#{project_id}/stories/#{id}").body Resources::Story.new({ client: client }.merge(data)) end def get_story(story_id) data = client.get("/stories/#{story_id}").body Resources::Story.new({ client: client }.merge(data)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-0.2.5 | lib/tracker_api/endpoints/story.rb |