Sha256: 2f1b5b839a98cbe055348203f9aaee988ac01eccdf23684c81b0e32fe9c9e562

Contents?: true

Size: 681 Bytes

Versions: 7

Compression:

Stored size: 681 Bytes

Contents

module Emarsys
  module Api
    ESCHER_AUTH_OPTIONS = {
      algo_prefix: 'EMS',
      vendor_key: 'EMS',
      auth_header_name: 'X-Ems-Auth',
      date_header_name: 'X-Ems-Date'
    }.freeze


    autoload :Base, 'emarsys/api/base'
    autoload :Error, 'emarsys/api/error'
    autoload :RecoverableError, 'emarsys/api/error'
    autoload :IrrecoverableError, 'emarsys/api/error'
    autoload :BadRequestError, 'emarsys/api/error'
    autoload :UnauthorizedError, 'emarsys/api/error'
    autoload :Services, 'emarsys/api/services'
    autoload :Internal, 'emarsys/api/internal'


    def self.base_url
      ENV['EMARSYS_API_URL'] || 'https://api.emarsys.net'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
emarsys-api-0.7.0 lib/emarsys/api.rb
emarsys-api-0.6.1 lib/emarsys/api.rb
emarsys-api-0.6.0 lib/emarsys/api.rb
emarsys-api-0.5.0 lib/emarsys/api.rb
emarsys-api-0.4.0 lib/emarsys/api.rb
emarsys-api-0.3.0 lib/emarsys/api.rb
emarsys-api-0.2.0 lib/emarsys/api.rb