lib/twitterscraper/client.rb in twitterscraper-ruby-0.12.0 vs lib/twitterscraper/client.rb in twitterscraper-ruby-0.13.0
- old
+ new
@@ -1,13 +1,18 @@
module Twitterscraper
class Client
include Query
- def initialize(cache: false)
+ def initialize(cache: true, proxy: true)
@cache = cache
+ @proxy = proxy
end
def cache_enabled?
@cache
+ end
+
+ def proxy_enabled?
+ @proxy
end
end
end