Sha256: c77cee5dfb9b51444bdff387313b4680ba55658adbff5e559310be0fc7b704d1
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: true module ApiSigv2 class Signature # @return [Hash<String,String>] A hash of headers that should # be applied to the HTTP request. Header keys are lower # cased strings and may include the following: # # * 'host' # * 'x-date' # * 'x-content-sha256' # * 'authorization' # attr_reader :headers # @return [String] For debugging purposes. attr_reader :canonical_request # @return [String] For debugging purposes. attr_reader :string_to_sign # @return [String] For debugging purposes. attr_reader :content_sha256 # @return [String] For debugging purposes. attr_reader :signature def initialize(attributes) attributes.each do |key, value| instance_variable_set("@#{key}", value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
galetahub-api-sigv2-1.0.0 | lib/api_sigv2/signature.rb |