Class: Biryani::HPACK::Some

Inherits:
Object
  • Object
show all
Defined in:
lib/biryani/hpack/option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject (readonly)

Returns the value of attribute index.



4
5
6
# File 'lib/biryani/hpack/option.rb', line 4

def index
  @index
end

#valueObject (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

#deconstructObject



11
12
13
# File 'lib/biryani/hpack/option.rb', line 11

def deconstruct
  [@index, @value]
end