class Entry
A single digest entry in the Digest header.
Definitions
def initialize(algorithm, value)
Create a new digest entry.
Signature
-
parameter
algorithmString the digest algorithm (e.g., "sha-256", "md5").
-
parameter
valueString the base64-encoded or hex-encoded digest value.
Implementation
def initialize(algorithm, value)
super(algorithm.downcase, value)
end
def to_s
Convert the entry to its string representation.
Signature
-
returns
String the formatted digest string.
Implementation
def to_s
"#{algorithm}=#{value}"
end