Method: Quandl::Connection.parse

Defined in:
lib/quandl/connection.rb

.parse(response) ⇒ Object



30
31
32
33
34
# File 'lib/quandl/connection.rb', line 30

def self.parse(response)
  ActiveSupport::HashWithIndifferentAccess.new(JSON.parse(response))
rescue JSON::ParserError
  raise general_error(response.code, response.body)
end