Class: Zm::Client::Document
- Inherits:
- 
      Base::Object
      
        - Object
- Base::Object
- Zm::Client::Document
 
- Includes:
- BelongsToFolder, BelongsToTag
- Defined in:
- lib/zm/client/document/document.rb
Overview
class for account document
Instance Attribute Summary collapse
- 
  
    
      #acl  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute acl. 
- 
  
    
      #cd  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute cd. 
- 
  
    
      #cr  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute cr. 
- 
  
    
      #ct  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute ct. 
- 
  
    
      #d  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute d. 
- 
  
    
      #descEnabled  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute descEnabled. 
- 
  
    
      #f  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute f. 
- 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute id. 
- 
  
    
      #l  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute l. 
- 
  
    
      #leb  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute leb. 
- 
  
    
      #loid  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute loid. 
- 
  
    
      #luuid  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute luuid. 
- 
  
    
      #md  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute md. 
- 
  
    
      #mdver  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute mdver. 
- 
  
    
      #meta  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute meta. 
- 
  
    
      #ms  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute ms. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #rev  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute rev. 
- 
  
    
      #s  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute s. 
- 
  
    
      #sf  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute sf. 
- 
  
    
      #t  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute t. 
- 
  
    
      #tn  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute tn. 
- 
  
    
      #uuid  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute uuid. 
- 
  
    
      #ver  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute ver. 
Attributes inherited from Base::Object
Instance Method Summary collapse
- #create! ⇒ Object
- #delete! ⇒ Object
- #download(dest_file_path) ⇒ Object
- #modify! ⇒ Object
- #reload! ⇒ Object
- #rename!(*args) ⇒ Object
- #update!(*args) ⇒ Object
Methods included from BelongsToTag
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
#acl ⇒ Object
Returns the value of attribute acl.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def acl @acl end | 
#cd ⇒ Object
Returns the value of attribute cd.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def cd @cd end | 
#cr ⇒ Object
Returns the value of attribute cr.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def cr @cr end | 
#ct ⇒ Object
Returns the value of attribute ct.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def ct @ct end | 
#d ⇒ Object
Returns the value of attribute d.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def d @d end | 
#descEnabled ⇒ Object
Returns the value of attribute descEnabled.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def descEnabled @descEnabled end | 
#f ⇒ Object
Returns the value of attribute f.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def f @f end | 
#id ⇒ Object
Returns the value of attribute id.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def id @id end | 
#l ⇒ Object
Returns the value of attribute l.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def l @l end | 
#leb ⇒ Object
Returns the value of attribute leb.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def leb @leb end | 
#loid ⇒ Object
Returns the value of attribute loid.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def loid @loid end | 
#luuid ⇒ Object
Returns the value of attribute luuid.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def luuid @luuid end | 
#md ⇒ Object
Returns the value of attribute md.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def md @md end | 
#mdver ⇒ Object
Returns the value of attribute mdver.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def mdver @mdver end | 
#meta ⇒ Object
Returns the value of attribute meta.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def end | 
#ms ⇒ Object
Returns the value of attribute ms.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def ms @ms end | 
#name ⇒ Object
Returns the value of attribute name.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def name @name end | 
#rev ⇒ Object
Returns the value of attribute rev.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def rev @rev end | 
#s ⇒ Object
Returns the value of attribute s.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def s @s end | 
#sf ⇒ Object
Returns the value of attribute sf.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def sf @sf end | 
#t ⇒ Object
Returns the value of attribute t.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def t @t end | 
#tn ⇒ Object
Returns the value of attribute tn.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def tn @tn end | 
#uuid ⇒ Object
Returns the value of attribute uuid.
| 10 11 12 | # File 'lib/zm/client/document/document.rb', line 10 def uuid @uuid end | 
#ver ⇒ Object
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
| 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
| 17 18 19 | # File 'lib/zm/client/document/document.rb', line 17 def modify! raise NotImplementedError end | 
#reload! ⇒ Object
| 36 37 38 | # File 'lib/zm/client/document/document.rb', line 36 def reload! raise NotImplementedError end | 
#rename!(*args) ⇒ Object
| 25 26 27 | # File 'lib/zm/client/document/document.rb', line 25 def rename!(*args) raise NotImplementedError end | 
#update!(*args) ⇒ Object
| 21 22 23 | # File 'lib/zm/client/document/document.rb', line 21 def update!(*args) raise NotImplementedError end |