Class: Instana::Backend::RequestClient::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Instana::Backend::RequestClient::Response
- Defined in:
- lib/instana/backend/request_client.rb
Overview
Instance Method Summary collapse
-
#json ⇒ Hash
The decoded json response.
-
#ok? ⇒ Boolean
True if the request was successful.
Instance Method Details
#json ⇒ Hash
Returns the decoded json response.
27 28 29 |
# File 'lib/instana/backend/request_client.rb', line 27 def json JSON.parse(body) end |
#ok? ⇒ Boolean
Returns true if the request was successful.
32 33 34 |
# File 'lib/instana/backend/request_client.rb', line 32 def ok? __getobj__.is_a?(Net::HTTPSuccess) end |