Class: Projects::Model::Tasklist

Inherits:
Object
  • Object
show all
Defined in:
lib/projects/model/Tasklist.rb

Overview

  • This class is used to make an object for Tasklist.

Instance Method Summary collapse

Instance Method Details

#getCreatedTimeObject

  • Get the task list created time.

Returns

  • Task list created time.



89
90
91
# File 'lib/projects/model/Tasklist.rb', line 89

def getCreatedTime
	return @createdTime
end

#getCreatedTimeFormatObject

  • Get the task list created time format.

Returns

  • Task list created time format.



109
110
111
# File 'lib/projects/model/Tasklist.rb', line 109

def getCreatedTimeFormat
	return @createdTimeFormat
end

#getCreatedTimeLongObject

  • Get the task list created time long.

Returns

  • Task list created time long.



129
130
131
# File 'lib/projects/model/Tasklist.rb', line 129

def getCreatedTimeLong
	return @createdTimeLong
end

#getFlagObject

  • Get the flag for the task list.

Returns

  • Task list flag.



229
230
231
# File 'lib/projects/model/Tasklist.rb', line 229

def getFlag
	return @flag
end

#getIdObject

  • Get the task list id.

Returns

  • Task list id.



29
30
31
# File 'lib/projects/model/Tasklist.rb', line 29

def getId
	return @id
end

#getMilestoneObject

  • Get the milestone for the task list.

Returns

  • Milestone object.



269
270
271
# File 'lib/projects/model/Tasklist.rb', line 269

def getMilestone
	return @milestone
end

#getNameObject

  • Get the task list name.

Returns

  • task list name.



49
50
51
# File 'lib/projects/model/Tasklist.rb', line 49

def getName
	return @name
end

#getSequenceObject

  • Get the sequence of the task list.

Returns

  • Sequence of the task list.



169
170
171
# File 'lib/projects/model/Tasklist.rb', line 169

def getSequence
	return @sequence
end

#getStatusObject

  • Get the status of the task list.

Returns

  • Status of the task list.



249
250
251
# File 'lib/projects/model/Tasklist.rb', line 249

def getStatus
	return @status
end

#getTaskURLObject

  • Get the task URL.

Returns

  • Task URL.



209
210
211
# File 'lib/projects/model/Tasklist.rb', line 209

def getTaskURL
	return @taskUrl
end

#getURLObject

  • Get the task list URL.

Returns

  • Task list URL.



189
190
191
# File 'lib/projects/model/Tasklist.rb', line 189

def getURL
	return @url
end

#isCompletedObject

  • Get whether the task list is completed or not.

Returns

  • true, if the task list is completed else returns false.



69
70
71
# File 'lib/projects/model/Tasklist.rb', line 69

def isCompleted
	return @completed
end

#isRolledObject

  • Get whether the task list rolled or not.

Returns

  • true, if the task list is rolled else returns false.



149
150
151
# File 'lib/projects/model/Tasklist.rb', line 149

def isRolled
	return rolled
end

#setCompleted(completed) ⇒ Object

  • Set whether the task list is completed or not.

Parameters

  • completed
    • Whether the task list is completed or not.



59
60
61
# File 'lib/projects/model/Tasklist.rb', line 59

def setCompleted(completed)
	@completed = completed
end

#setCreatedTime(createdTime) ⇒ Object

  • Set the task list created time.

Parameters

  • createdTime
    • Task list created time.



79
80
81
# File 'lib/projects/model/Tasklist.rb', line 79

def setCreatedTime(createdTime)
	@createdTime = createdTime
end

#setCreatedTimeFormat(createdTimeFormat) ⇒ Object

  • Set the task list created time format.

Parameters

  • createdTime
    • Task list created time format.



99
100
101
# File 'lib/projects/model/Tasklist.rb', line 99

def setCreatedTimeFormat(createdTimeFormat)
	@createdTimeFormat = createdTimeFormat
end

#setCreatedTimeLong(createdTimeLong) ⇒ Object

  • Set the task list created time long.

Parameters

  • createdTimeLong
    • Task list created time long.



119
120
121
# File 'lib/projects/model/Tasklist.rb', line 119

def setCreatedTimeLong(createdTimeLong)
	@createdTimeLong = createdTimeLong
end

#setFlag(flag) ⇒ Object

  • Set the flag for the task list.

Parameters

  • flag
    • Flag for the task list.



219
220
221
# File 'lib/projects/model/Tasklist.rb', line 219

def setFlag(flag)
	@flag = flag
end

#setId(id) ⇒ Object

  • Set the task list id.

Parameters

  • id
    • ID of the task list.



19
20
21
# File 'lib/projects/model/Tasklist.rb', line 19

def setId(id)
	@id = id
end

#setMilestone(milestone) ⇒ Object

  • Set the milestone for the task list.

Parameters

  • milestone
    • Milestone object.



259
260
261
# File 'lib/projects/model/Tasklist.rb', line 259

def setMilestone(milestone)
	@milestone = milestone
end

#setName(name) ⇒ Object

  • Set the task list name.

Parameters

  • name
    • Name of the task list.



39
40
41
# File 'lib/projects/model/Tasklist.rb', line 39

def setName(name)
	@name = name
end

#setRolled(rolled) ⇒ Object

  • Set whether the task list is rolled or not.

Parameters

  • rolled
    • Whether the task list is rolled or not.



139
140
141
# File 'lib/projects/model/Tasklist.rb', line 139

def setRolled(rolled)
	@rolled = rolled
end

#setSequence(sequence) ⇒ Object

  • Set the sequence of the task list.

Parameters

  • sequence
    • Sequence of the task list.



159
160
161
# File 'lib/projects/model/Tasklist.rb', line 159

def setSequence(sequence) 
	@sequence = sequence
end

#setStatus(status) ⇒ Object

  • Set the status of the task list.

Parameters

  • status
    • Status of the task list.



239
240
241
# File 'lib/projects/model/Tasklist.rb', line 239

def setStatus(status)
	@status = status
end

#setTaskURL(taskUrl) ⇒ Object

  • Set the task URL.

Parameters

  • taskUrl
    • URL for the task.



199
200
201
# File 'lib/projects/model/Tasklist.rb', line 199

def setTaskURL(taskUrl)
	@taskUrl = taskUrl
end

#setURL(url) ⇒ Object

  • Set the task list URL.

Parameters

  • url
    • URL for the task list.



179
180
181
# File 'lib/projects/model/Tasklist.rb', line 179

def setURL(url)
	@url = url
end

#toParamMAPObject

  • Convert the Tasklist object into HashMap.

Returns

  • HashMap object.



279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/projects/model/Tasklist.rb', line 279

def toParamMAP
	requestBody = Hash.new
	
	if milestone != nil
		requestBody["milestone_id"] = milestone.getId
	end
	if name != nil
		requestBody["name"] = name
	end
	if flag != nil
		requestBody["flag"] = flag
	end
	if status != nil
		requestBody["status"] = status
	end
	
	return requestBody
end