lib/mailgun/client.rb in mailgun-ruby-1.1.10 vs lib/mailgun/client.rb in mailgun-ruby-1.1.11
- old
+ new
@@ -12,16 +12,18 @@
def initialize(api_key = Mailgun.api_key,
api_host = 'api.mailgun.net',
api_version = 'v3',
ssl = true,
- test_mode = false)
+ test_mode = false,
+ timeout = nil)
endpoint = endpoint_generator(api_host, api_version, ssl)
@http_client = RestClient::Resource.new(endpoint,
user: 'api',
password: api_key,
- user_agent: "mailgun-sdk-ruby/#{Mailgun::VERSION}")
+ user_agent: "mailgun-sdk-ruby/#{Mailgun::VERSION}",
+ timeout: timeout)
@test_mode = test_mode
end
# Enable test mode
#