Class: Uploadcare::Client::UploadClient Abstract

Inherits:
ApiStruct::Client
  • Object
show all
Includes:
Uploadcare::Concerns::ErrorHandler, Uploadcare::Concerns::ThrottleHandler, Exception
Defined in:
lib/uploadcare/client/upload_client.rb

Overview

This class is abstract.

Headers and helper methods for clients working with upload API

Instance Method Summary collapse

Methods included from Uploadcare::Concerns::ThrottleHandler

#handle_throttling

Methods included from Uploadcare::Concerns::ErrorHandler

#failure, #wrap

Instance Method Details

#api_rootObject



21
22
23
# File 'lib/uploadcare/client/upload_client.rb', line 21

def api_root
  Uploadcare.config.upload_api_root
end

#headersObject



25
26
27
28
29
# File 'lib/uploadcare/client/upload_client.rb', line 25

def headers
  {
    'User-Agent': Uploadcare::Param::UserAgent.call
  }
end