Method: IEX::Errors::ClientError#error

Defined in:
lib/iex/errors/client_error.rb

#errorObject


11
12
13
14
15
16
17
# File 'lib/iex/errors/client_error.rb', line 11

def error
  if body.is_a?(Hash) && body.key?('error')
    body['error']
  else
    body
  end
end