Sha256: bff127831c9f9c3556a5d9aec14921ca074d09d3e2354d3241101ed33d81bdbd
Contents?: true
Size: 858 Bytes
Versions: 3
Compression:
Stored size: 858 Bytes
Contents
# frozen_string_literal: true require 'eps-rapid/version' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eps-rapid-1.3.0 | lib/eps-rapid.rb |
eps-rapid-1.2.1 | lib/eps-rapid.rb |
eps-rapid-1.2.0 | lib/eps-rapid.rb |