Class: Serfx::Response
- Inherits:
-
Object
- Object
- Serfx::Response
- Defined in:
- lib/serfx/response.rb
Overview
Store agent rpc response data All RPC responses in Serf composed of an header and an optional body.
Defined Under Namespace
Classes: Header
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(header, body = nil) ⇒ Response
constructor
Constructs a response object from a given header and body.
Constructor Details
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
18 19 20 |
# File 'lib/serfx/response.rb', line 18 def body @body end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
18 19 20 |
# File 'lib/serfx/response.rb', line 18 def header @header end |