Class: Biryani::HPACK::Some
- Inherits:
-
Object
- Object
- Biryani::HPACK::Some
- Defined in:
- lib/biryani/hpack/option.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #deconstruct ⇒ Object
-
#initialize(index, value) ⇒ Some
constructor
A new instance of Some.
Constructor Details
#initialize(index, value) ⇒ Some
Returns a new instance of Some.
6 7 8 9 |
# File 'lib/biryani/hpack/option.rb', line 6 def initialize(index, value) @index = index @value = value end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
4 5 6 |
# File 'lib/biryani/hpack/option.rb', line 4 def index @index end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/biryani/hpack/option.rb', line 4 def value @value end |
Instance Method Details
#deconstruct ⇒ Object
11 12 13 |
# File 'lib/biryani/hpack/option.rb', line 11 def deconstruct [@index, @value] end |