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=, #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

#alarm ⇒ Object

Returns the value of attribute alarm.



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

def alarm
  @alarm
end

#allDay ⇒ Object

Returns the value of attribute allDay.



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

def allDay
  @allDay
end

#class ⇒ Object

Returns the value of attribute class.



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

def class
  @class
end

#cm ⇒ Object

Returns the value of attribute cm.



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

def cm
  @cm
end

#compNum ⇒ Object

Returns the value of attribute compNum.



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

def compNum
  @compNum
end

#d ⇒ Object

Returns the value of attribute d.



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

def d
  @d
end

#f ⇒ Object

Returns the value of attribute f.



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

def f
  @f
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#invId ⇒ Object

Returns the value of attribute invId.



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

def invId
  @invId
end

#isOrg ⇒ Object

Returns the value of attribute isOrg.



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

def isOrg
  @isOrg
end

#l ⇒ Object

Returns the value of attribute l.



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

def l
  @l
end

#loc ⇒ Object

Returns the value of attribute loc.



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

def loc
  @loc
end

#md ⇒ Object

Returns the value of attribute md.



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

def md
  @md
end

#ms ⇒ Object

Returns the value of attribute ms.



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

def ms
  @ms
end

#name ⇒ Object

Returns the value of attribute name.



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

def name
  @name
end

#percentComplete ⇒ Object

Returns the value of attribute percentComplete.



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

def percentComplete
  @percentComplete
end

#priority ⇒ Object

Returns the value of attribute priority.



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

def priority
  @priority
end

#ptst ⇒ Object

Returns the value of attribute ptst.



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

def ptst
  @ptst
end

#rev ⇒ Object

Returns the value of attribute rev.



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

def rev
  @rev
end

#s ⇒ Object

Returns the value of attribute s.



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

def s
  @s
end

#sf ⇒ Object

Returns the value of attribute sf.



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

def sf
  @sf
end

#status ⇒ Object

Returns the value of attribute status.



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

def status
  @status
end

#t ⇒ Object

Returns the value of attribute t.



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

def t
  @t
end

#tn ⇒ Object

Returns the value of attribute tn.



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

def tn
  @tn
end

#uid ⇒ Object

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)


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

def create!
  raise NotImplementedError
end

#delete! ⇒ Object

Raises:

  • (NotImplementedError)


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

def delete!
  raise NotImplementedError
end

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



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

def download(dest_file_path, fmt: 'ics')
  uploader = @parent.build_uploader
  uploader.download_file(dest_file_path, id, FolderView::APPOINTMENT, fmt:)
end

#modify! ⇒ Object

Raises:

  • (NotImplementedError)


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

def modify!
  raise NotImplementedError
end

#reload! ⇒ Object

Raises:

  • (NotImplementedError)


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

def reload!
  raise NotImplementedError
end

#rename!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def rename!(*args)
  raise NotImplementedError
end

#update!(*args) ⇒ Object

Raises:

  • (NotImplementedError)


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

def update!(*args)
  raise NotImplementedError
end