Class: Parser::CustomJSON

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/eloqua_api/client.rb

Instance Method Summary collapse

Instance Method Details

#parseObject



11
12
13
14
15
# File 'lib/eloqua_api/client.rb', line 11

def parse
  JSON.parse(body) if body
rescue JSON::ParserError
  body
end