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

- old
+ new

@@ -8,10 +8,11 @@ VALID_OPTIONS_KEYS = [ :adapter, :api_key, :endpoint, :format, + :skip_rubyize, :gateway, :proxy, :user_agent].freeze # An array of valid request/response formats @@ -32,10 +33,13 @@ # The response format appended to the path and sent in the 'Accept' header if none is set # # @note JSON is preferred over XML because it is more concise and faster to parse. DEFAULT_FORMAT = :json + # Default transformation done to response + DEFAULT_SKIP_RUBYIZE = 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 @@ -66,9 +70,10 @@ def reset 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.proxy = DEFAULT_PROXY self.user_agent = DEFAULT_USER_AGENT self.gateway = DEFAULT_GATEWAY self end