Sha256: 2984c29071f917879e43fb1c7ecb395b67f2c304c0f117e42978c79a37b30a41
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true require 'param/user_agent' require 'uploadcare/concern/error_handler' require 'uploadcare/concern/throttle_handler' module Uploadcare module Client # @abstract # # Headers and helper methods for clients working with upload API # @see https://uploadcare.com/docs/api_reference/upload/ class UploadClient < ApiStruct::Client include Concerns::ErrorHandler include Concerns::ThrottleHandler include Exception def api_root Uploadcare.config.upload_api_root end def headers { 'User-Agent': Uploadcare::Param::UserAgent.call } end private def default_params {} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uploadcare-ruby-3.0.5 | lib/uploadcare/client/upload_client.rb |
uploadcare-ruby-3.0.3 | lib/uploadcare/client/upload_client.rb |