Class: Nexpose::MobileOffice365DiscoveryConnection
- Inherits:
-
DiscoveryConnection
- Object
- APIObject
- DiscoveryConnection
- Nexpose::MobileOffice365DiscoveryConnection
- Defined in:
- lib/nexpose/discovery.rb
Instance Attribute Summary
Attributes inherited from DiscoveryConnection
#address, #collection_method, #engine_id, #event_source, #exchange_hostname, #exchange_password, #exchange_username, #id, #name, #password, #port, #protocol, #status, #type, #user
Instance Method Summary collapse
-
#initialize(name, address, user, password, exchange_username, exchange_password) ⇒ MobileOffice365DiscoveryConnection
constructor
Create a new Mobile Office365 discovery connection.
Methods inherited from DiscoveryConnection
#==, #as_xml, #connect, #create, #delete, #discover, #eql?, parse, #save, #to_h, #to_json, #to_xml, #update
Methods included from XMLUtils
#make_xml, #parse_xml, success?
Methods inherited from APIObject
Constructor Details
#initialize(name, address, user, password, exchange_username, exchange_password) ⇒ MobileOffice365DiscoveryConnection
Create a new Mobile Office365 discovery connection.
380 381 382 383 384 385 386 387 388 |
# File 'lib/nexpose/discovery.rb', line 380 def initialize(name, address, user, password, exchange_username, exchange_password) @name, @address, @user, @password = name, address, user, password @protocol = Protocol::HTTPS @exchange_hostname = '' # nexpose will set to office365 server @exchange_username, @exchange_password = exchange_username, exchange_password @type = Type::ACTIVESYNC_OFFICE365 @id = -1 @port = 443 # port not used for mobile connection end |