Class: Protocol::HTTP::Header::Digest::Entry
- Inherits:
-
Struct
- Object
- Struct
- Protocol::HTTP::Header::Digest::Entry
- Defined in:
- lib/protocol/http/header/digest.rb
Overview
A single digest entry in the Digest header.
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(algorithm, value) ⇒ Entry
constructor
Create a new digest entry.
-
#to_s ⇒ Object
Convert the entry to its string representation.
Constructor Details
#initialize(algorithm, value) ⇒ Entry
Create a new digest entry.
37 38 39 |
# File 'lib/protocol/http/header/digest.rb', line 37 def initialize(algorithm, value) super(algorithm.downcase, value) end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm
32 33 34 |
# File 'lib/protocol/http/header/digest.rb', line 32 def algorithm @algorithm end |
#value ⇒ Object
Returns the value of attribute value
32 33 34 |
# File 'lib/protocol/http/header/digest.rb', line 32 def value @value end |
Instance Method Details
#to_s ⇒ Object
Convert the entry to its string representation.
44 45 46 |
# File 'lib/protocol/http/header/digest.rb', line 44 def to_s "#{algorithm}=#{value}" end |