Sha256: cb754335cc965f50f313eb0bb844d5ca12aa36ba1e53163973eb45591254163d

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 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, 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.6 lib/tracker_api/endpoints/epic.rb