Class: Zm::Client::SearchFolder
- Inherits:
-
Base::FolderObject
- Object
- Base::Object
- Base::AccountObject
- Base::FolderObject
- Zm::Client::SearchFolder
- Includes:
- Model::AttributeChangeObserver
- Defined in:
- lib/zm/client/search_folder/search_folder.rb
Overview
class account SearchFolder
Constant Summary collapse
- INSTANCE_VARIABLE_KEYS =
i[id uuid deletable name absFolderPath l luuid color rgb rev ms webOfflineSyncDays activesyncdisabled query sortBy types]
Instance Attribute Summary collapse
-
#absFolderPath ⇒ Object
readonly
attr_accessor *INSTANCE_VARIABLE_KEYS.
-
#id ⇒ Object
readonly
attr_accessor *INSTANCE_VARIABLE_KEYS.
-
#types ⇒ Object
readonly
attr_accessor *INSTANCE_VARIABLE_KEYS.
Attributes inherited from Base::Object
#grantee_type, #name, #parent, #token
Instance Method Summary collapse
- #all_instance_variable_keys ⇒ Object
- #create! ⇒ Object
-
#initialize(parent) ⇒ SearchFolder
constructor
A new instance of SearchFolder.
- #modify! ⇒ Object
Methods included from Model::AttributeChangeObserver
Methods inherited from Base::FolderObject
#color!, #delete!, #move!, #rename!
Methods inherited from Base::AccountObject
#concat, #delete!, #init_from_json, #rename!, #soap_account_connector, #to_h
Methods inherited from Base::Object
#arrow_name, #clone, #concat, #convert_json_string_value, #disable_builder, #enable_builder, #init_from_json, #instance_variables_array, #instance_variables_hash, #logger, #recorded?, #save!, #to_s, #use_builder?
Constructor Details
#initialize(parent) ⇒ SearchFolder
16 17 18 19 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 16 def initialize(parent) super(parent) @types = 'messages' end |
Instance Attribute Details
#absFolderPath ⇒ Object (readonly)
attr_accessor *INSTANCE_VARIABLE_KEYS
12 13 14 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 12 def absFolderPath @absFolderPath end |
#id ⇒ Object (readonly)
attr_accessor *INSTANCE_VARIABLE_KEYS
12 13 14 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 12 def id @id end |
#types ⇒ Object (readonly)
attr_accessor *INSTANCE_VARIABLE_KEYS
12 13 14 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 12 def types @types end |
Instance Method Details
#all_instance_variable_keys ⇒ Object
21 22 23 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 21 def all_instance_variable_keys INSTANCE_VARIABLE_KEYS end |
#create! ⇒ Object
25 26 27 28 29 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 25 def create! rep = @parent.sacc.create_search_folder(@parent.token, jsns_builder.to_jsns) json = rep[:Body][:CreateSearchFolderResponse][:search].first SearchFolderJsnsInitializer.update(self, json) end |
#modify! ⇒ Object
31 32 33 34 |
# File 'lib/zm/client/search_folder/search_folder.rb', line 31 def modify! @parent.sacc.modify_search_folder(@parent.token, jsns_builder.to_modify) super end |