Class: Zm::Client::MountPoint
- Inherits:
-
Base::Object
- Object
- Base::Object
- Zm::Client::MountPoint
- Includes:
- BelongsToFolder
- Defined in:
- lib/zm/client/mountpoint/mountpoint.rb
Overview
class for account mountpoint
Instance Attribute Summary collapse
-
#absFolderPath ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#activesyncdisabled ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#broken ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#color ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#deletable ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#f ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#id ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#l ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#luuid ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#ms ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#name ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#owner ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#reminder ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#rev ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#rgb ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#rid ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#ruuid ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#url ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#uuid ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#view ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#webOfflineSyncDays ⇒ Object
include Zm::Model::AttributeChangeObserver.
-
#zid ⇒ Object
include Zm::Model::AttributeChangeObserver.
Attributes inherited from Base::Object
Instance Method Summary collapse
- #color! ⇒ Object
- #create! ⇒ Object
- #delete! ⇒ Object
-
#initialize(parent) ⇒ MountPoint
constructor
define_changed_attributes :name, :color, :rgb, :l.
- #modify! ⇒ Object
- #reload! ⇒ Object
- #rename!(new_name) ⇒ Object
- #update!(*args) ⇒ Object
Methods included from BelongsToFolder
#folder, #folder!, #folder=, #folder_id, #move!, #trash!
Methods inherited from Base::Object
#clone, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Constructor Details
#initialize(parent) ⇒ MountPoint
define_changed_attributes :name, :color, :rgb, :l
16 17 18 19 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 16 def initialize(parent) @l = FolderDefault::ROOT[:id] super(parent) end |
Instance Attribute Details
#absFolderPath ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def absFolderPath @absFolderPath end |
#activesyncdisabled ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def activesyncdisabled @activesyncdisabled end |
#broken ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def broken @broken end |
#color ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def color @color end |
#deletable ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def deletable @deletable end |
#f ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def f @f end |
#id ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def id @id end |
#l ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def l @l end |
#luuid ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def luuid @luuid end |
#ms ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def ms @ms end |
#name ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def name @name end |
#owner ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def owner @owner end |
#reminder ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def reminder @reminder end |
#rev ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def rev @rev end |
#rgb ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def rgb @rgb end |
#rid ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def rid @rid end |
#ruuid ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def ruuid @ruuid end |
#url ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def url @url end |
#uuid ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def uuid @uuid end |
#view ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def view @view end |
#webOfflineSyncDays ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def webOfflineSyncDays @webOfflineSyncDays end |
#zid ⇒ Object
include Zm::Model::AttributeChangeObserver
10 11 12 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 10 def zid @zid end |
Instance Method Details
#color! ⇒ Object
37 38 39 40 41 42 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 37 def color! # @parent.sacc.invoke(jsns_builder.to_color) if color_changed? || rgb_changed? @parent.sacc.invoke(jsns_builder.to_color) true end |
#create! ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 21 def create! rep = @parent.sacc.invoke(jsns_builder.to_jsns) json = rep[:CreateMountpointResponse][:link].first MountpointJsnsInitializer.update(self, json) @id end |
#delete! ⇒ Object
55 56 57 58 59 60 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 55 def delete! return false if @id.nil? @parent.sacc.invoke(jsns_builder.to_delete) @id = nil end |
#modify! ⇒ Object
29 30 31 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 29 def modify! raise NotImplementedError end |
#reload! ⇒ Object
51 52 53 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 51 def reload! raise NotImplementedError end |
#rename!(new_name) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 44 def rename!(new_name) return false if new_name == @name @parent.sacc.invoke(jsns_builder.to_rename(new_name)) @name = new_name end |
#update!(*args) ⇒ Object
33 34 35 |
# File 'lib/zm/client/mountpoint/mountpoint.rb', line 33 def update!(*args) raise NotImplementedError end |