Sha256: f5f60191390fe1abc38ba65d217a316365cfa644094f0f4c8a08bed238b5b406
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 Bytes
Contents
module GnipApi # Configurations for the GnipApi gem. # # Defaults: # - logger: *Logger.new('tmp/gnip_api.log')* # - request_timeout: *60* # - debug: *false* # - enable_gzip: *true* # - log_level: *Logger::WARN* # - buffer_limit: *1000000* class Configuration attr_accessor :user, :password, :account, :logger, :source, :label, :request_timeout, :debug, :enable_gzip, :log_level def initialize @request_timeout = 60 @debug = false @enable_gzip = true @log_level = Logger::WARN end def logger return @logger if @logger @logger = Logger.new('tmp/gnip_api.log') @logger.level = log_level return @logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gnip_api-1.2.4 | lib/gnip_api/configuration.rb |
gnip_api-1.2.3 | lib/gnip_api/configuration.rb |