lib/bunny_app/client.rb in bunny_app-2.1.0 vs lib/bunny_app/client.rb in bunny_app-2.2.0
- old
+ new
@@ -10,9 +10,10 @@
USER_AGENT = "BunnyApp Ruby v#{BunnyApp::VERSION}".freeze
def initialize
self.class.base_uri BunnyApp.base_uri
self.class.default_options.update(verify: verify_ssl)
+ self.class.default_timeout 3 # seconds
BunnyApp.access_token ||= fetch_access_token
@headers = {
'User-Agent' => USER_AGENT,
'Content-Type' => 'application/json',