class Instana::Backend::RequestClient::Response

Public Instance Methods

json() click to toggle source

@return [Hash] the decoded json response

# File lib/instana/backend/request_client.rb, line 25
def json
  JSON.parse(body)
end
ok?() click to toggle source

@return [Boolean] true if the request was successful

# File lib/instana/backend/request_client.rb, line 30
def ok?
  __getobj__.is_a?(Net::HTTPSuccess)
end