Class: Five9::Base
- Inherits:
-
Object
- Object
- Five9::Base
- Defined in:
- lib/five9/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(username, password, given_wsdl, timeout = 300) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(username, password, given_wsdl, timeout = 300) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 11 |
# File 'lib/five9/base.rb', line 4 def initialize(username,password,given_wsdl,timeout=300) #For some reason httpclient is not compatible with api.five9.com so we have to manually set this option HTTPI.adapter = :net_http @client = Savon.client do wsdl "#{given_wsdl}#{username}" basic_auth [username, password] end end |