Sha256: f45bbe2f4860be5dd41bd65bd28454ae60b7c941a6eef51eb0e51a7b5788f54f
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 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' module EpsRapid class << self attr_accessor :api_key, :secret_key, :base_path, :language 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eps-rapid-1.0.1 | lib/eps-rapid.rb |
eps-rapid-1.0.0 | lib/eps-rapid.rb |