Class: Zm::Client::SoapAdminConnector

Inherits:
SoapBaseConnector show all
Defined in:
lib/zm/client/connector/soap_admin.rb

Constant Summary

Constants inherited from SoapBaseConnector

Zm::Client::SoapBaseConnector::BASESPACE, Zm::Client::SoapBaseConnector::HTTP_HEADERS

Instance Attribute Summary

Attributes inherited from SoapBaseConnector

#context

Attributes included from ZmLogger

#logger, #logger_file_path, #logger_level

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SoapBaseConnector

#http_client!, #invoke, #target_invoke, #verbose!

Methods included from ZmLogger

#init_logger

Constructor Details

#initialize(scheme, host, port) ⇒ SoapAdminConnector

Returns a new instance of SoapAdminConnector.



29
30
31
# File 'lib/zm/client/connector/soap_admin.rb', line 29

def initialize(scheme, host, port)
  super(scheme, host, port, SoapAdminConstants::ADMIN_SERVICE_URI)
end

Class Method Details

.create(config) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/zm/client/connector/soap_admin.rb', line 10

def create(config)
  trans = new(
    config.zimbra_admin_scheme,
    config.zimbra_admin_host,
    config.zimbra_admin_port
  )
  trans.logger = config.logger
  trans
end

Instance Method Details

#tokenObject



21
22
23
# File 'lib/zm/client/connector/soap_admin.rb', line 21

def token
  context.to_hash[:authToken]
end

#token=(value) ⇒ Object



25
26
27
# File 'lib/zm/client/connector/soap_admin.rb', line 25

def token=(value)
  context.token(value)
end