Class: Zm::Client::Server

Inherits:
Base::Object show all
Includes:
HasSoapAdminConnector
Defined in:
lib/zm/client/server/server.rb

Overview

objectClass: zimbraServer

Instance Attribute Summary

Attributes inherited from Base::Object

#id, #name, #parent, #token

Instance Method Summary collapse

Methods included from HasSoapAdminConnector

#soap_admin_connector

Methods inherited from Base::Object

#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute

Constructor Details

This class inherits a constructor from Zm::Client::Base::Object

Instance Method Details

#accountsObject



20
21
22
# File 'lib/zm/client/server/server.rb', line 20

def accounts
  @accounts ||= ServerAccountsCollection.new(self)
end

#backupsObject



16
17
18
# File 'lib/zm/client/server/server.rb', line 16

def backups
  @backups ||= BackupsCollection.new(self)
end

#mta_queuesObject



12
13
14
# File 'lib/zm/client/server/server.rb', line 12

def mta_queues
  @mta_queues ||= MtaQueuesCollection.new(self)
end

#update!(hash) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/zm/client/server/server.rb', line 24

def update!(hash)
  return false if hash.delete_if { |k, v| v.nil? || !respond_to?(k) }.empty?

  do_update!(hash)

  hash.each do |key, value|
    update_attribute(key, value)
  end

  true
end