Sha256: 674cf4bef9301d74a13b940801e60cfcddf5993564d1037e743a2b9ec529f309

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

module TrackerApi
  module Endpoints
    class Epic
      attr_accessor :client

      def initialize(client)
        @client = client
      end

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

        Resources::Epic.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/epic.rb