class Forward::API::Resource::JSONify

Public Instance Methods

response(resp) click to toggle source
# File lib/forward/api/resource.rb, line 19
def response(resp)
    resp.response = JSON.parse(resp.response, symbolize_names: true)
  rescue JSON::ParserError
    Forward.logger.debug 'Unable to parse API response'
end