Class: Corelogic::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/corelogic/response_parser.rb

Class Method Summary collapse

Class Method Details

.perform(response) ⇒ Object



7
8
9
10
# File 'lib/corelogic/response_parser.rb', line 7

def perform(response)
  response_body = (response.body.nil? || response.body.empty?) ? '' : Corelogic::Utils.deep_symbolize_keys(response.parse(:json))
  error_filter(response.code, response_body)
end