Class: Hatetepe::Message
- Inherits:
-
Object
- Object
- Hatetepe::Message
- Defined in:
- lib/hatetepe/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_version ⇒ Object
Returns the value of attribute http_version.
Instance Method Summary collapse
-
#initialize(headers = {}, body = nil, http_version = "1.1") ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(headers = {}, body = nil, http_version = "1.1") ⇒ Message
Returns a new instance of Message.
8 9 10 11 |
# File 'lib/hatetepe/message.rb', line 8 def initialize(headers = {}, body = nil, http_version = "1.1") @headers, @http_version = headers, http_version @body = body || Body.new end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/hatetepe/message.rb', line 5 def body @body end |
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/hatetepe/message.rb', line 6 def connection @connection end |
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/hatetepe/message.rb', line 5 def headers @headers end |
#http_version ⇒ Object
Returns the value of attribute http_version.
5 6 7 |
# File 'lib/hatetepe/message.rb', line 5 def http_version @http_version end |