class CLXRestAPI::Response
Attributes
original_response[R]
Public Class Methods
new(original_response)
click to toggle source
# File lib/clx_rest_api/response.rb, line 5 def initialize(original_response) @original_response = original_response end
Public Instance Methods
body()
click to toggle source
# File lib/clx_rest_api/response.rb, line 9 def body JSON.parse(@original_response.body) rescue JSON::ParserError {} end