Sha256: 30a519e660c77c35714f1c98ccb6f1fd4e9848f092adeb438512143a93860a92

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module TrackerApi
  module Endpoints
    class Story
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      def get(project_id, id)
        data = client.request(
            method: :get,
            :path => "/projects/#{project_id}/stories/#{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.1.0 lib/tracker_api/endpoints/story.rb