Class: Zm::Client::Document

Inherits:
Base::Object show all
Includes:
BelongsToFolder, BelongsToTag
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 BelongsToTag

#tags

Methods included from BelongsToFolder

#folder, #folder!, #folder=, #folder_id, #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.



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

def acl
  @acl
end

#cdObject

Returns the value of attribute cd.



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

def cd
  @cd
end

#crObject

Returns the value of attribute cr.



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

def cr
  @cr
end

#ctObject

Returns the value of attribute ct.



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

def ct
  @ct
end

#dObject

Returns the value of attribute d.



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

def d
  @d
end

#descEnabledObject

Returns the value of attribute descEnabled.



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

def descEnabled
  @descEnabled
end

#fObject

Returns the value of attribute f.



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

def f
  @f
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#lObject

Returns the value of attribute l.



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

def l
  @l
end

#lebObject

Returns the value of attribute leb.



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

def leb
  @leb
end

#loidObject

Returns the value of attribute loid.



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

def loid
  @loid
end

#luuidObject

Returns the value of attribute luuid.



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

def luuid
  @luuid
end

#mdObject

Returns the value of attribute md.



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

def md
  @md
end

#mdverObject

Returns the value of attribute mdver.



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

def mdver
  @mdver
end

#metaObject

Returns the value of attribute meta.



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

def meta
  @meta
end

#msObject

Returns the value of attribute ms.



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

def ms
  @ms
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#revObject

Returns the value of attribute rev.



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

def rev
  @rev
end

#sObject

Returns the value of attribute s.



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

def s
  @s
end

#sfObject

Returns the value of attribute sf.



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

def sf
  @sf
end

#tObject

Returns the value of attribute t.



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

def t
  @t
end

#tnObject

Returns the value of attribute tn.



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

def tn
  @tn
end

#uuidObject

Returns the value of attribute uuid.



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

def uuid
  @uuid
end

#verObject

Returns the value of attribute ver.



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

def ver
  @ver
end

Instance Method Details

#create!Object

Raises:

  • (NotImplementedError)


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

def create!
  raise NotImplementedError
end

#delete!Object



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

def delete!
  return false if @id.nil?

  @parent.sacc.invoke(jsns_builder.to_delete)
  @id = nil
end

#download(dest_file_path) ⇒ Object



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

def download(dest_file_path)
  uploader = Upload.new(@parent, RestAccountConnector.new)
  uploader.download_file( Zm::Client::FolderDefault::ROOT[:path], nil, [Zm::Client::FolderView::DOCUMENT], [@id], dest_file_path)
end

#modify!Object

Raises:

  • (NotImplementedError)


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

def modify!
  raise NotImplementedError
end

#reload!Object

Raises:

  • (NotImplementedError)


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

def reload!
  raise NotImplementedError
end

#rename!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def rename!(*args)
  raise NotImplementedError
end

#update!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def update!(*args)
  raise NotImplementedError
end