Sha256: cf53761c88d2ff2e521706a73457d98908011db8eb8c8bfd5ce7b61dec7af453

Contents?: true

Size: 778 Bytes

Versions: 21

Compression:

Stored size: 778 Bytes

Contents

# frozen_string_literal: true

Gem.find_files('client/**/*.rb').each { |path| require path }
Gem.find_files('entity/**/*.rb').each { |path| require path }

module Uploadcare
  # End-user interface
  #
  # It delegates methods to other classes:
  # * To class methods of Entity objects
  # * To instance methods of Client objects
  # @see Uploadcare::Entity
  # @see Uploadcare::Client
  class Api
    extend Forwardable
    include Entity

    def_delegator File, :file
    def_delegators FileList, :file_list, :store_files, :delete_files
    def_delegators Group, :group
    def_delegators Project, :project
    def_delegators Uploader, :upload, :upload_files, :upload_url
    def_delegators Webhook, :create_webhook, :list_webhooks, :delete_webhook, :update_webhook
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
uploadcare-ruby-4.4.3 lib/uploadcare/api/api.rb
uploadcare-ruby-4.4.2 lib/uploadcare/api/api.rb
uploadcare-ruby-4.4.1 lib/uploadcare/api/api.rb
uploadcare-ruby-4.4.0 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.6 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.5 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.4 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.3 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.2 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.1 lib/uploadcare/api/api.rb
uploadcare-ruby-4.3.0 lib/uploadcare/api/api.rb
uploadcare-ruby-4.2.0 lib/uploadcare/api/api.rb
uploadcare-ruby-3.3.2 lib/uploadcare/api/api.rb
uploadcare-ruby-3.3.1 lib/uploadcare/api/api.rb
uploadcare-ruby-3.3.0 lib/uploadcare/api/api.rb
uploadcare-ruby-3.2.0 lib/uploadcare/api/api.rb
uploadcare-ruby-3.1.1 lib/uploadcare/api/api.rb
uploadcare-ruby-3.1.0 lib/uploadcare/api/api.rb
uploadcare-ruby-3.1.0.pre.rc1 lib/uploadcare/api/api.rb
uploadcare-ruby-3.0.5 lib/uploadcare/api/api.rb