Class: Hpack::Field
- Inherits:
-
Object
- Object
- Hpack::Field
- Defined in:
- lib/hpack/field.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(header, value) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(header, value) ⇒ Field
Returns a new instance of Field.
6 7 8 9 |
# File 'lib/hpack/field.rb', line 6 def initialize header, value @header = header @value = value end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
3 4 5 |
# File 'lib/hpack/field.rb', line 3 def header @header end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/hpack/field.rb', line 4 def value @value end |