Sha256: 226885a6d21e3fc9e2e1896fc9d2196fe78ab94eec5221241ba3e3772bb855a5

Contents?: true

Size: 810 Bytes

Versions: 3

Compression:

Stored size: 810 Bytes

Contents

# frozen_string_literal: true

require 'uploadcare/rails/api/rest/base'

module Uploadcare
  module Rails
    module Api
      module Rest
        # A class that contains Project related methods for Uploadcare REST API
        class ProjectApi < Base
          class << self
            # Get information about the current project.
            # Current project is determined by public and secret keys combination.
            # @see https://uploadcare.com/api-refs/rest-api/v0.5.0/#tag/Project
            # rubocop:disable Naming/AccessorMethodName
            def get_project
              Uploadcare::Project.show
            end
            # rubocop:enable Naming/AccessorMethodName
          end
        end
      end
    end
  end
end

Uploadcare::ProjectApi = Uploadcare::Rails::Api::Rest::ProjectApi

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uploadcare-rails-2.1.1 lib/uploadcare/rails/api/rest/project_api.rb
uploadcare-rails-2.1.0 lib/uploadcare/rails/api/rest/project_api.rb
uploadcare-rails-2.0.0 lib/uploadcare/rails/api/rest/project_api.rb