Class: Tanker::Http::HttpHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/tanker/core/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ HttpHeader

Returns a new instance of HttpHeader.



10
11
12
13
# File 'lib/tanker/core/http.rb', line 10

def initialize(name, value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/tanker/core/http.rb', line 8

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/tanker/core/http.rb', line 8

def value
  @value
end