Class: Five9::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/five9/base.rb

Direct Known Subclasses

Statistics

Instance Method Summary collapse

Constructor Details

#initialize(username, password, given_wsdl, timeout = 300) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
10
11
12
# 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]
      log false
	end
end