lib/gnip_api/configuration.rb in gnip_api-0.0.1 vs lib/gnip_api/configuration.rb in gnip_api-0.0.2
- old
+ new
@@ -1,10 +1,13 @@
module GnipApi
class Configuration
- attr_accessor :user, :password, :adapter_class, :account, :logger
+ attr_accessor :user, :password, :adapter_class, :account, :logger, :mutex
+ attr_reader :rate_limiter
def initialize
@adapter_class = GnipApi::Adapters::HTTPartyAdapter
@logger = Logger.new('tmp/gnip_api.log')
+ @mutex = Mutex.new
+ @rate_limiter = GnipApi::RateLimiter.new
end
end
end