class GdsApi::Config

def always_raise_for_not_found

it on your client application.
you upgrade gds-api-adapters to the latest version and avoid configuring
This configuration will be removed on December 1st, 2016. Please make sure

Currently defaults to true.

code and makes debugging easier.
`HTTPGone` when the server returns 410. This avoids nil-errors in your
Always raise an `HTTPNotFound` exception when the server returns 404 or an
def always_raise_for_not_found
  return true if @always_raise_for_not_found.nil?
  @always_raise_for_not_found
end

def always_raise_for_not_found=(value)

def always_raise_for_not_found=(value)
  warn <<-doc
ECATION NOTICE: Please delete any instances of
Api.config.always_raise_for_not_found=` from your codebase to make
 all 404 or 410 responses raise an exception.
 configuration option will be be removed. Raising exceptions is now
default behaviour and it won't be possible to opt-out from December
 2016.
ed from: #{caller[2]}
  doc
  @always_raise_for_not_found = value
end

def hash_response_for_requests

it on your client application.
you upgrade gds-api-adapters to the latest version and avoid configuring
This configuration will be removed on December 1st, 2016. Please make sure

Currently defaults to true.

of an OpenStruct. This will prevent nil-errors.
Set to true to make `GdsApi::Response` behave like a simple hash, instead
def hash_response_for_requests
  return true if @hash_response_for_requests.nil?
  @hash_response_for_requests
end

def hash_response_for_requests=(value)

def hash_response_for_requests=(value)
  warn <<-doc
ECATION NOTICE: Please delete any instances of
Api.config.hash_response_for_requests=` from your codebase to make
 responses behave like a Hash instead of an OpenStruct.
 configuration option will be be removed. Returning responses that
ve like a Hash is the default behaviour and it won't be possible to
out from December 1st, 2016.
ed from: #{caller[2]}
  doc
  @hash_response_for_requests = value
end