lib/digital_river/resource/response.rb
# Retrieve response and raise exceptions when the response contains errors
#
# @return [Response]
#
# @api public
#
# @example
#   resource = Class.new do
#     include Resource::Response
#
#     def url
#       "http://api.url.de"
#     end
#   end
#
#   resource.response!
Retrieve response and raise exceptions when the response contains errors
Retrieve response and raise exceptions when the response contains errors
def response!
        return response if !response.errors?
        raise response.to_exception
      end
def response! return response if ! response . errors? raise response . to_exception end
Retrieve response and raise exceptions when the response contains errors
Retrieve response and raise exceptions when the response contains errors
None
Response
api
None
example
None