Sha256: 63e5c3a4e41bfbfe48a08000ab73f750d7f43fe3c7bcac4d3756dd28bda445a2

Contents?: true

Size: 371 Bytes

Versions: 8

Compression:

Stored size: 371 Bytes

Contents

module TrackerApi
  module Endpoints
    class Release
      attr_accessor :client

      def initialize(client)
        @client = client
      end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tracker_api-1.16.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.15.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.14.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.13.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.12.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.11.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.10.0 lib/tracker_api/endpoints/release.rb
tracker_api-1.9.1 lib/tracker_api/endpoints/release.rb