Sha256: d1e5548f5542a38ba4602362972cb7eb4abe3f6cb47622390437a2537587a107
Contents?: true
Size: 849 Bytes
Versions: 4
Compression:
Stored size: 849 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, :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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eps-rapid-1.1.3 | lib/eps-rapid.rb |
eps-rapid-1.1.2 | lib/eps-rapid.rb |
eps-rapid-1.1.1 | lib/eps-rapid.rb |
eps-rapid-1.1.0 | lib/eps-rapid.rb |