Class: Tanker::Http::HttpHeader
- Inherits:
-
Object
- Object
- Tanker::Http::HttpHeader
- Defined in:
- lib/tanker/core/http.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ HttpHeader
constructor
A new instance of HttpHeader.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/tanker/core/http.rb', line 8 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/tanker/core/http.rb', line 8 def value @value end |