module RescuableErrors

Public Instance Methods

parse(response) click to toggle source
# File lib/rescuable_errors.rb, line 16
def parse(response)
  begin
    return JSON.parse(response)
  rescue JSON::ParserError
    return response
  end
end