lib/fullcontact/configuration.rb in fullcontact-0.11.0 vs lib/fullcontact/configuration.rb in fullcontact-0.12.0

- old
+ new

@@ -9,10 +9,11 @@ :adapter, :api_key, :endpoint, :format, :skip_rubyize, + :include_headers_in_response, :gateway, :proxy, :user_agent].freeze # An array of valid request/response formats @@ -36,10 +37,13 @@ DEFAULT_FORMAT = :json # Default transformation done to response DEFAULT_SKIP_RUBYIZE = false + # Includes response headers + DEFAULT_INCLUDE_HEADERS_IN_RESPONSE = false + # By default, don't use a proxy server DEFAULT_PROXY = nil # The user agent that will be sent to the API endpoint if none is set DEFAULT_USER_AGENT = "FullContact Ruby Client/#{FullContact::VERSION}".freeze @@ -71,9 +75,10 @@ self.adapter = DEFAULT_ADAPTER self.api_key = DEFAULT_API_KEY self.endpoint = DEFAULT_ENDPOINT self.format = DEFAULT_FORMAT self.skip_rubyize = DEFAULT_SKIP_RUBYIZE + self.include_headers_in_response = DEFAULT_INCLUDE_HEADERS_IN_RESPONSE self.proxy = DEFAULT_PROXY self.user_agent = DEFAULT_USER_AGENT self.gateway = DEFAULT_GATEWAY self end