Sha256: 7bd4e08b0b6b24d3153809211389547140e803d6833b9e02d698abb35f7ca769
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true require 'eps-rapid/version' require 'eps-rapid/request_config' require 'eps-rapid/client' require 'eps-rapid/errors/exceptions' require 'eps-rapid/errors/http_status_codes' require 'eps-rapid/geography' require 'eps-rapid/content' require 'eps-rapid/shopping' require 'eps-rapid/booking' require 'eps-rapid/manage_booking' require 'eps-rapid/recommendations' require 'eps-rapid/notifications' require 'digest' require 'logger' module EpsRapid class << self attr_accessor :api_key, :secret_key, :base_path, :language_resolver, :logger def configure yield(self) end def auth_header timestamp = Time.now.to_i to_be_hashed = "#{api_key}#{secret_key}#{timestamp}" signature = Digest::SHA2.new(512).hexdigest(to_be_hashed) "EAN apikey=#{api_key},signature=#{signature},timestamp=#{timestamp}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eps-rapid-1.4.0 | lib/eps-rapid.rb |