Sha256: aaf74305af9a28a891dc17863e5d18793cf4f8d71964ef653d6a4960f079aa4f

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracker_api-0.2.4 lib/tracker_api/endpoints/story.rb
tracker_api-0.2.3 lib/tracker_api/endpoints/story.rb
tracker_api-0.2.2 lib/tracker_api/endpoints/story.rb
tracker_api-0.2.1 lib/tracker_api/endpoints/story.rb
tracker_api-0.2.0 lib/tracker_api/endpoints/story.rb