Sha256: 51ecc6bf6a8e7bf0a09cbfac64b3208f3d7a9a145e4941078196320efb7c7711

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

module TrackerApi
  module Endpoints
    class Epic
      attr_accessor :client

      def initialize(client)
        @client = client
      end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tracker_api-0.2.10 lib/tracker_api/endpoints/epic.rb