lib/pipedrive/base.rb
# Examines a bad response and raises an appropriate exception
#
# @param [HTTParty::Response] response
Examines a bad response and raises an appropriate exception
Examines a bad response and raises an appropriate exception
def bad_response(response, params={})
        puts params.inspect
        if response.class == HTTParty::Response
          raise HTTParty::ResponseError, response
        end
        raise StandardError, 'Unknown error'
      end
def bad_response ( response , params = { } ) puts params . inspect if response . class == HTTParty :: Response raise HTTParty :: ResponseError , response end raise StandardError , 'Unknown error' end
Examines a bad response and raises an appropriate exception
Examines a bad response and raises an appropriate exception
response
<not_specific>
params
<not_specific>
<not_specific>
None