lib/gnip_api/configuration.rb in gnip_api-1.1.3 vs lib/gnip_api/configuration.rb in gnip_api-1.2.0

- old
+ new

@@ -1,17 +1,15 @@ module GnipApi class Configuration - OUTPUT_FORMATS = [:activity, :json, :parsed_json] + attr_accessor :user, :password, :account, :logger, :source, :label, :request_timeout, :debug, + :enable_gzip, :log_level, :buffer_limit - attr_accessor :user, :password, :adapter_class, :account, :logger, :source, :label, :request_timeout, :debug, - :stream_output_format, :enable_gzip - def initialize - @adapter_class = GnipApi::Adapters::HTTPartyAdapter @logger = Logger.new('tmp/gnip_api.log') @request_timeout = 60 @debug = false - @stream_output_format = :activity @enable_gzip = true + @log_level = Logger::INFO + @logger.level = @log_level end end end