Class: Uploadcare::Param::SimpleAuthHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/uploadcare/param/simple_auth_header.rb

Overview

This object returns simple header for authentication Simple header is relatively unsafe, but can be useful for debug and development

Class Method Summary collapse

Class Method Details

.callObject



9
10
11
# File 'lib/uploadcare/param/simple_auth_header.rb', line 9

def self.call
  { Authorization: "Uploadcare.Simple #{Uploadcare.config.public_key}:#{Uploadcare.config.secret_key}" }
end