Sha256: 597626757b6f1d44545545d2db02c6c831464db1b92f42eea55144103abbb178

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module Uploadcare
  module Client
    # API client for getting project info
    # @see https://uploadcare.com/docs/api_reference/rest/handling_projects/
    class ProjectClient < RestClient
      # get information about current project
      # current project is determined by public and private key combination
      # @see https://uploadcare.com/api-refs/rest-api/v0.5.0/#tag/Project
      def show
        get(uri: '/project/')
      end

      alias project show
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uploadcare-ruby-3.1.0 lib/uploadcare/client/project_client.rb
uploadcare-ruby-3.1.0.pre.rc1 lib/uploadcare/client/project_client.rb
uploadcare-ruby-3.0.5 lib/uploadcare/client/project_client.rb
uploadcare-ruby-3.0.3 lib/uploadcare/client/project_client.rb