class ApiModel::ResponseParser::Json
Public Instance Methods
parse(body)
click to toggle source
# File lib/api_model/response_parser/json.rb, line 5 def parse(body) JSON.parse body rescue JSON::ParserError Log.info "Could not parse JSON response: #{body}" return nil end