Method: Viewpoint::EWS::SOAP::ExchangeWebService#initialize

Defined in:
lib/ews/soap/exchange_web_service.rb

#initialize(connection, opts = {}) ⇒ ExchangeWebService

Returns a new instance of ExchangeWebService.

Options Hash (opts):

  • :server_version (String)

    what version to target with the requests. Must be one of the contants VERSION_2007, VERSION_2007_SP1, VERSION_2010, VERSION_2010_SP1, VERSION_2010_SP2, or VERSION_NONE. The default is VERSION_2010.



39
40
41
42
43
44
45
46
47
# File 'lib/ews/soap/exchange_web_service.rb', line 39

def initialize(connection, opts = {})
  super()
  @connection = connection
  @server_version = opts[:server_version] ? opts[:server_version] : VERSION_2010
  @auto_deepen    = true
  @no_auto_deepen_behavior = :raise
  @impersonation_type = ""
  @impersonation_address = ""
end