Sha256: 5699152e2425465fb4285aeb037cd2e6a238946d6dba9111b0dd48fd6ae4a3aa

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

module TrackerApi
  module Endpoints
    class Epic
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      def get(project_id, id)
        data = client.get("/projects/#{project_id}/epics/#{id}").body

        Resources::Epic.new({ client: client }.merge(data))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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