Class: Zm::Client::SearchFolder

Inherits:
Base::Object show all
Includes:
MailboxItemConcern, RequestMethodsMailbox
Defined in:
lib/zm/client/search_folder/search_folder.rb

Overview

class account SearchFolder

Instance Attribute Summary collapse

Attributes included from MailboxItemConcern

#l

Attributes inherited from Base::Object

#id, #parent, #token

Instance Method Summary collapse

Methods included from MailboxItemConcern

#id, #id=, #mailbox_id

Methods included from RequestMethodsMailbox

#build_create, #build_delete, #build_modify, #build_rename, #delete!, #modify!, #rename!

Methods inherited from Base::Object

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

Constructor Details

#initialize(parent) ⇒ SearchFolder

Returns a new instance of SearchFolder.



14
15
16
17
18
# File 'lib/zm/client/search_folder/search_folder.rb', line 14

def initialize(parent)
  @l = FolderDefault::ROOT.id
  @types = 'messages'
  super
end

Instance Attribute Details

#absFolderPathObject

Returns the value of attribute absFolderPath.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def absFolderPath
  @absFolderPath
end

#activesyncdisabledObject

Returns the value of attribute activesyncdisabled.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def activesyncdisabled
  @activesyncdisabled
end

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def color
  @color
end

#deletableObject

Returns the value of attribute deletable.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def deletable
  @deletable
end

#luuidObject

Returns the value of attribute luuid.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def luuid
  @luuid
end

#msObject

Returns the value of attribute ms.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def ms
  @ms
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def name
  @name
end

#queryObject

Returns the value of attribute query.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def query
  @query
end

#revObject

Returns the value of attribute rev.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def rev
  @rev
end

#rgbObject

Returns the value of attribute rgb.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def rgb
  @rgb
end

#sortByObject

Returns the value of attribute sortBy.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def sortBy
  @sortBy
end

#typesObject

Returns the value of attribute types.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def types
  @types
end

#uuidObject

Returns the value of attribute uuid.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def uuid
  @uuid
end

#webOfflineSyncDaysObject

Returns the value of attribute webOfflineSyncDays.



10
11
12
# File 'lib/zm/client/search_folder/search_folder.rb', line 10

def webOfflineSyncDays
  @webOfflineSyncDays
end

Instance Method Details

#build_colorObject



36
37
38
# File 'lib/zm/client/search_folder/search_folder.rb', line 36

def build_color
  jsns_builder.to_color
end

#color!Object



31
32
33
34
# File 'lib/zm/client/search_folder/search_folder.rb', line 31

def color!
  @parent.soap_connector.invoke(build_color)
  true
end

#create!Object



20
21
22
23
24
25
# File 'lib/zm/client/search_folder/search_folder.rb', line 20

def create!
  rep = @parent.soap_connector.invoke(build_create)
  json = rep[:CreateSearchFolderResponse][:search].first
  SearchFolderJsnsInitializer.update(self, json)
  @id
end

#update!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/zm/client/search_folder/search_folder.rb', line 27

def update!(*args)
  raise NotImplementedError
end