Class: Zm::Client::Resource
- Inherits:
-
Base::MailboxObject
- Object
- Base::Object
- Base::MailboxObject
- Zm::Client::Resource
- Includes:
- RequestMethodsAdmin
- Defined in:
- lib/zm/client/resource/resource.rb
Overview
objectClass: zimbraCalendarResource
Constant Summary collapse
- LOCATION =
'Location'- EQUIPMENT =
'Equipment'- TYPES =
[LOCATION, EQUIPMENT].freeze
Instance Attribute Summary
Attributes inherited from Base::MailboxObject
#carLicense, #domain_key, #home_url, #password, #public_url, #used
Attributes inherited from Base::Object
Instance Method Summary collapse
- #attrs_write ⇒ Object
- #create! ⇒ Object
- #equipment? ⇒ Boolean
- #jsns_builder ⇒ Object
- #location? ⇒ Boolean
Methods included from RequestMethodsAdmin
#build_create, #build_delete, #build_modify, #build_rename, #delete!, #modify!, #rename!, #update!
Methods inherited from Base::MailboxObject
#account_content_by, #account_login, #account_login_password, #account_login_preauth, #aces, #admin_login, #alive?, #appointments, #build_uploader, #contacts, #data_sources, #dls_owner, #documents, #domain_name, #filter_rules, #folders, #identities, #infos, #is_external_transport?, #is_local_transport?, #last_logon, #local_transport, #local_transport!, #logged?, #logged_and_alive?, #login, #mailbox_infos, #mbxid, #mbxid!, #memberships, #messages, #mountpoints, #outgoing_filter_rules, #password!, #prefs, #rest_account_url, #rest_admin_url, #rest_options, #rest_url, #search_folders, #shares, #signatures, #soap_account_connector, #soap_connector, #tags, #tasks, #token, #token=, #used!
Methods included from HasSoapAdminConnector
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
#attrs_write ⇒ Object
18 19 20 |
# File 'lib/zm/client/resource/resource.rb', line 18 def attrs_write @parent.zimbra_attributes.all_resource_attrs_writable_names end |
#create! ⇒ Object
13 14 15 16 |
# File 'lib/zm/client/resource/resource.rb', line 13 def create! resp = sac.invoke(build_create) @id = resp[:CreateCalendarResourceResponse][:calresource].first[:id] end |
#equipment? ⇒ Boolean
26 27 28 |
# File 'lib/zm/client/resource/resource.rb', line 26 def equipment? zimbraCalResType == EQUIPMENT end |
#jsns_builder ⇒ Object
30 31 32 33 34 |
# File 'lib/zm/client/resource/resource.rb', line 30 def jsns_builder return @jsns_builder if defined? @jsns_builder @jsns_builder = ResourceJsnsBuilder.new(self) end |
#location? ⇒ Boolean
22 23 24 |
# File 'lib/zm/client/resource/resource.rb', line 22 def location? zimbraCalResType == LOCATION end |