Sha256: a9e00ac7ec4143617b3f12b730217484f50de133a3ed4181e104aa7a16bde743
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 Bytes
Contents
# frozen_string_literal: true module ApiSignature 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 |
---|---|
api_signature-1.0.0 | lib/api_signature/signature.rb |