Class: Zm::Client::Task

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

Overview

class for account task

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

#alarmObject

Returns the value of attribute alarm.



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

def alarm
  @alarm
end

#allDayObject

Returns the value of attribute allDay.



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

def allDay
  @allDay
end

#classObject

Returns the value of attribute class.



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

def class
  @class
end

#cmObject

Returns the value of attribute cm.



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

def cm
  @cm
end

#compNumObject

Returns the value of attribute compNum.



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

def compNum
  @compNum
end

#dObject

Returns the value of attribute d.



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

def d
  @d
end

#fObject

Returns the value of attribute f.



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

def f
  @f
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invIdObject

Returns the value of attribute invId.



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

def invId
  @invId
end

#isOrgObject

Returns the value of attribute isOrg.



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

def isOrg
  @isOrg
end

#lObject

Returns the value of attribute l.



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

def l
  @l
end

#locObject

Returns the value of attribute loc.



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

def loc
  @loc
end

#mdObject

Returns the value of attribute md.



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

def md
  @md
end

#msObject

Returns the value of attribute ms.



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

def ms
  @ms
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#percentCompleteObject

Returns the value of attribute percentComplete.



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

def percentComplete
  @percentComplete
end

#priorityObject

Returns the value of attribute priority.



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

def priority
  @priority
end

#ptstObject

Returns the value of attribute ptst.



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

def ptst
  @ptst
end

#revObject

Returns the value of attribute rev.



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

def rev
  @rev
end

#sObject

Returns the value of attribute s.



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

def s
  @s
end

#sfObject

Returns the value of attribute sf.



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

def sf
  @sf
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#tObject

Returns the value of attribute t.



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

def t
  @t
end

#tnObject

Returns the value of attribute tn.



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

def tn
  @tn
end

#uidObject

Returns the value of attribute uid.



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

def uid
  @uid
end

Instance Method Details

#create!Object

Raises:

  • (NotImplementedError)


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

def create!
  raise NotImplementedError
end

#delete!Object

Raises:

  • (NotImplementedError)


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

def delete!
  raise NotImplementedError
end

#download(dest_file_path, fmt = 'ics') ⇒ Object



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

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

#modify!Object

Raises:

  • (NotImplementedError)


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

def modify!
  raise NotImplementedError
end

#reload!Object

Raises:

  • (NotImplementedError)


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

def reload!
  raise NotImplementedError
end

#rename!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def rename!(*args)
  raise NotImplementedError
end

#update!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def update!(*args)
  raise NotImplementedError
end