Class: Zm::Client::Document

Inherits:
Base::Object show all
Includes:
BelongsToFolder, BelongsToTag, RequestMethodsMailbox
Defined in:
lib/zm/client/document/document.rb

Overview

class for account document

Instance Attribute Summary collapse

Attributes inherited from Base::Object

#parent, #token

Instance Method Summary collapse

Methods included from RequestMethodsMailbox

#build_delete, #delete!

Methods included from BelongsToTag

#tags

Methods included from BelongsToFolder

#folder, #folder!, #folder=, #move!, #trash!

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 Attribute Details

#aclObject

Returns the value of attribute acl.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def acl
  @acl
end

#cdObject

Returns the value of attribute cd.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def cd
  @cd
end

#crObject

Returns the value of attribute cr.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def cr
  @cr
end

#ctObject

Returns the value of attribute ct.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def ct
  @ct
end

#dObject

Returns the value of attribute d.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def d
  @d
end

#descEnabledObject

Returns the value of attribute descEnabled.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def descEnabled
  @descEnabled
end

#fObject

Returns the value of attribute f.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def f
  @f
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def id
  @id
end

#lObject

Returns the value of attribute l.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def l
  @l
end

#lebObject

Returns the value of attribute leb.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def leb
  @leb
end

#loidObject

Returns the value of attribute loid.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def loid
  @loid
end

#luuidObject

Returns the value of attribute luuid.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def luuid
  @luuid
end

#mdObject

Returns the value of attribute md.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def md
  @md
end

#mdverObject

Returns the value of attribute mdver.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def mdver
  @mdver
end

#metaObject

Returns the value of attribute meta.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def meta
  @meta
end

#msObject

Returns the value of attribute ms.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def ms
  @ms
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def name
  @name
end

#revObject

Returns the value of attribute rev.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def rev
  @rev
end

#sObject

Returns the value of attribute s.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def s
  @s
end

#sfObject

Returns the value of attribute sf.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def sf
  @sf
end

#tObject

Returns the value of attribute t.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def t
  @t
end

#tnObject

Returns the value of attribute tn.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def tn
  @tn
end

#uuidObject

Returns the value of attribute uuid.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def uuid
  @uuid
end

#verObject

Returns the value of attribute ver.



11
12
13
# File 'lib/zm/client/document/document.rb', line 11

def ver
  @ver
end

Instance Method Details

#build_createObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/zm/client/document/document.rb', line 18

def build_create
  raise NotImplementedError
end

#build_modifyObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/zm/client/document/document.rb', line 26

def build_modify
  raise NotImplementedError
end

#build_rename(*args) ⇒ Object

Raises:

  • (NotImplementedError)


38
39
40
# File 'lib/zm/client/document/document.rb', line 38

def build_rename(*args)
  raise NotImplementedError
end

#create!Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/zm/client/document/document.rb', line 14

def create!
  raise NotImplementedError
end

#download(dest_file_path) ⇒ Object



46
47
48
49
# File 'lib/zm/client/document/document.rb', line 46

def download(dest_file_path)
  uploader = @parent.build_uploader
  uploader.download_file(dest_file_path, id, nil)
end

#modify!Object

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/zm/client/document/document.rb', line 22

def modify!
  raise NotImplementedError
end

#reload!Object

Raises:

  • (NotImplementedError)


42
43
44
# File 'lib/zm/client/document/document.rb', line 42

def reload!
  raise NotImplementedError
end

#rename!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/zm/client/document/document.rb', line 34

def rename!(*args)
  raise NotImplementedError
end

#update!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/zm/client/document/document.rb', line 30

def update!(*args)
  raise NotImplementedError
end