Class: RestServiceClient::Response
- Inherits:
-
Object
- Object
- RestServiceClient::Response
- Defined in:
- lib/restserviceclient.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers, body, result) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status, headers, body, result) ⇒ Response
Returns a new instance of Response.
161 162 163 164 165 166 |
# File 'lib/restserviceclient.rb', line 161 def initialize(status, headers, body, result) @status = status @headers = headers @body = body @result = result end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
159 160 161 |
# File 'lib/restserviceclient.rb', line 159 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
159 160 161 |
# File 'lib/restserviceclient.rb', line 159 def headers @headers end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
159 160 161 |
# File 'lib/restserviceclient.rb', line 159 def result @result end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
159 160 161 |
# File 'lib/restserviceclient.rb', line 159 def status @status end |