Class: Projects::Model::Project
- Inherits:
-
Object
- Object
- Projects::Model::Project
- Defined in:
- lib/projects/model/Project.rb
Overview
-
This class is used to make an object for Project.
Instance Method Summary collapse
-
#getActivityURL ⇒ Object
-
Get the activity URL.
-
-
#getBugURL ⇒ Object
-
Get the bug URL.
-
-
#getClosedBugCount ⇒ Object
-
Get the closed bug count.
-
-
#getClosedMilestoneCount ⇒ Object
-
Get the closed milestone count.
-
-
#getClosedTaskCount ⇒ Object
-
Get the closed task count.
-
-
#getCreatedDate ⇒ Object
-
Get the project created date.
-
-
#getCreatedDateFormat ⇒ Object
-
Get the created date format for the project.
-
-
#getCreatedDateLong ⇒ Object
-
Get the project created date long.
-
-
#getDescription ⇒ Object
-
Get the project description.
-
-
#getDocumentURL ⇒ Object
-
Get the document URL.
-
-
#getEventURL ⇒ Object
-
Get the event URL.
-
-
#getFolderURL ⇒ Object
-
Get the folder URL.
-
-
#getForumURL ⇒ Object
-
Get the forum URL.
-
-
#getId ⇒ Object
-
Set the project id.
-
-
#getMilestoneURL ⇒ Object
-
Get the milestone URL.
-
-
#getName ⇒ Object
-
Get the project name.
-
-
#getOpenBugCount ⇒ Object
-
Get the open bug count.
-
-
#getOpenMilestoneCount ⇒ Object
-
Get the open milestone count.
-
-
#getOpenTaskCount ⇒ Object
-
Get the open task count.
-
-
#getOwnerId ⇒ Object
-
Get the owner id.
-
-
#getOwnerName ⇒ Object
-
Get the owner name.
-
-
#getStatus ⇒ Object
-
Get the project status.
-
-
#getStatusURL ⇒ Object
-
Get the status URL.
-
-
#getTasklistURL ⇒ Object
-
Get the task list URL.
-
-
#getTaskURL ⇒ Object
-
Get the task URL.
-
-
#getTemplateId ⇒ Object
-
Get the template id of the project.
-
-
#getTimesheetURL ⇒ Object
-
Get the time sheet URL.
-
-
#getURL ⇒ Object
-
Get the project URL.
-
-
#getUserURL ⇒ Object
-
Get the user URL.
-
-
#setActivityURL(activityUrl) ⇒ Object
-
Set the activity URL.
-
-
#setBugURL(bugUrl) ⇒ Object
-
Set the bug URL.
-
-
#setClosedBugCount(closedBugCount) ⇒ Object
-
Set the closed bug count.
-
-
#setClosedMilestoneCount(closedMilestoneCount) ⇒ Object
-
Set the closed milestone count.
-
-
#setClosedTaskCount(closedTaskCount) ⇒ Object
-
Set the closed task count.
-
-
#setCreatedDate(createdDate) ⇒ Object
-
Set the date when the project is being created.
-
-
#setCreatedDateFormat(createdDateFormat) ⇒ Object
-
Set the created date format for the project.
-
-
#setCreatedDateLong(createdDateLong) ⇒ Object
-
Set the project created date.
-
-
#setDescription(description) ⇒ Object
-
Set the project description.
-
-
#setDocumentURL(documentUrl) ⇒ Object
-
Set the document URL.
-
-
#setEventURL(eventUrl) ⇒ Object
-
Set the event URL.
-
-
#setFolderURL(folderUrl) ⇒ Object
-
Set the folder URL.
-
-
#setForumURL(forumUrl) ⇒ Object
-
Set the forum URL.
-
-
#setId(id) ⇒ Object
-
Get the project id.
-
-
#setMilestoneURL(milestoneUrl) ⇒ Object
-
Set the milestone URL.
-
-
#setName(name) ⇒ Object
-
Set the project name.
-
-
#setOpenBugCount(openBugCount) ⇒ Object
-
Set the open bug count.
-
-
#setOpenMilestoneCount(openMilestoneCount) ⇒ Object
-
Set the open milestone count.
-
-
#setOpenTaskCount(openTaskCount) ⇒ Object
-
Set the open task count.
-
-
#setOwnerId(ownerId) ⇒ Object
-
Set the owner id.
-
-
#setOwnerName(ownerName) ⇒ Object
-
Set the owner name.
-
-
#setStatus(status) ⇒ Object
-
Set the status of the project.
-
-
#setStatusURL(statusUrl) ⇒ Object
-
Set the status URL.
-
-
#setTasklistURL(tasklistUrl) ⇒ Object
-
Set the task list URL.
-
-
#setTaskURL(taskUrl) ⇒ Object
-
Set the task URL.
-
-
#setTemplateId(templateId) ⇒ Object
-
Set the template id of the project.
-
-
#setTimesheetURL(timesheetUrl) ⇒ Object
-
Set the time sheet URL.
-
-
#setURL(url) ⇒ Object
-
Set the project URL.
-
-
#setUserURL(userUrl) ⇒ Object
-
Set the user URL.
-
-
#toParamMAP ⇒ Object
-
Convert the Project object into HashMap.
-
Instance Method Details
#getActivityURL ⇒ Object
-
Get the activity URL.
Returns
-
Activity URL.
372 373 374 |
# File 'lib/projects/model/Project.rb', line 372 def getActivityURL return @activityUrl end |
#getBugURL ⇒ Object
-
Get the bug URL.
Returns
-
bug URL.
452 453 454 |
# File 'lib/projects/model/Project.rb', line 452 def getBugURL return @bugUrl end |
#getClosedBugCount ⇒ Object
-
Get the closed bug count.
Returns
-
Closed bug count for the project.
332 333 334 |
# File 'lib/projects/model/Project.rb', line 332 def getClosedBugCount return @closedBugCount end |
#getClosedMilestoneCount ⇒ Object
-
Get the closed milestone count.
Returns
-
closed milestone count for the project.
292 293 294 |
# File 'lib/projects/model/Project.rb', line 292 def getClosedMilestoneCount return @closedMilestoneCount end |
#getClosedTaskCount ⇒ Object
-
Get the closed task count.
Returns
-
Closed task count for the project.
252 253 254 |
# File 'lib/projects/model/Project.rb', line 252 def getClosedTaskCount return @closedTaskCount end |
#getCreatedDate ⇒ Object
-
Get the project created date.
Returns
-
Project created date.
112 113 114 |
# File 'lib/projects/model/Project.rb', line 112 def getCreatedDate return @createdDate end |
#getCreatedDateFormat ⇒ Object
-
Get the created date format for the project.
Returns
-
Project created date format.
132 133 134 |
# File 'lib/projects/model/Project.rb', line 132 def getCreatedDateFormat return @createdDateFormat end |
#getCreatedDateLong ⇒ Object
-
Get the project created date long.
Returns
-
project created date long.
152 153 154 |
# File 'lib/projects/model/Project.rb', line 152 def getCreatedDateLong return @createdDateLong end |
#getDescription ⇒ Object
-
Get the project description.
Returns
-
Project description.
172 173 174 |
# File 'lib/projects/model/Project.rb', line 172 def getDescription return @description end |
#getDocumentURL ⇒ Object
-
Get the document URL.
Returns
-
Document URL.
532 533 534 |
# File 'lib/projects/model/Project.rb', line 532 def getDocumentURL return @documentUrl end |
#getEventURL ⇒ Object
-
Get the event URL.
Returns
-
Event URL.
512 513 514 |
# File 'lib/projects/model/Project.rb', line 512 def getEventURL return @eventUrl end |
#getFolderURL ⇒ Object
-
Get the folder URL.
Returns
-
Folder URL.
552 553 554 |
# File 'lib/projects/model/Project.rb', line 552 def getFolderURL return @folderUrl end |
#getForumURL ⇒ Object
-
Get the forum URL.
Returns
-
Forum URL.
572 573 574 |
# File 'lib/projects/model/Project.rb', line 572 def getForumURL return @forumUrl end |
#getId ⇒ Object
-
Set the project id.
Parameters
- id
-
ID of the project.
-
18 19 20 |
# File 'lib/projects/model/Project.rb', line 18 def getId return @id end |
#getMilestoneURL ⇒ Object
-
Get the milestone URL.
Returns
-
milestone URL.
392 393 394 |
# File 'lib/projects/model/Project.rb', line 392 def getMilestoneURL return @milestoneUrl end |
#getName ⇒ Object
-
Get the project name.
Returns
-
Project name.
48 49 50 |
# File 'lib/projects/model/Project.rb', line 48 def getName return @name end |
#getOpenBugCount ⇒ Object
-
Get the open bug count.
Returns
-
Open bug count for the project.
312 313 314 |
# File 'lib/projects/model/Project.rb', line 312 def getOpenBugCount return @openBugCount end |
#getOpenMilestoneCount ⇒ Object
-
Get the open milestone count.
Returns
-
Open milestone count for the project.
272 273 274 |
# File 'lib/projects/model/Project.rb', line 272 def getOpenMilestoneCount return @openMilestoneCount end |
#getOpenTaskCount ⇒ Object
-
Get the open task count.
Returns
-
Open task count for the project.
232 233 234 |
# File 'lib/projects/model/Project.rb', line 232 def getOpenTaskCount return @openTaskCount end |
#getOwnerId ⇒ Object
-
Get the owner id.
Returns
-
Owner id.
212 213 214 |
# File 'lib/projects/model/Project.rb', line 212 def getOwnerId return @ownerId end |
#getOwnerName ⇒ Object
-
Get the owner name.
Returns
-
The owner name.
192 193 194 |
# File 'lib/projects/model/Project.rb', line 192 def getOwnerName return @ownerName end |
#getStatus ⇒ Object
-
Get the project status.
Returns
-
Project status.
92 93 94 |
# File 'lib/projects/model/Project.rb', line 92 def getStatus return @status end |
#getStatusURL ⇒ Object
-
Get the status URL.
Returns
-
Status URL.
492 493 494 |
# File 'lib/projects/model/Project.rb', line 492 def getStatusURL return @statusUrl end |
#getTasklistURL ⇒ Object
-
Get the task list URL.
Returns
-
Task list URL.
412 413 414 |
# File 'lib/projects/model/Project.rb', line 412 def getTasklistURL return @tasklistUrl end |
#getTaskURL ⇒ Object
-
Get the task URL.
Returns
-
task URL.
432 433 434 |
# File 'lib/projects/model/Project.rb', line 432 def getTaskURL return @taskUrl end |
#getTemplateId ⇒ Object
-
Get the template id of the project.
Returns
-
Returns the template id.
70 71 72 73 74 |
# File 'lib/projects/model/Project.rb', line 70 def getTemplateId return @templateId end |
#getTimesheetURL ⇒ Object
-
Get the time sheet URL.
Returns
-
Time sheet URL.
472 473 474 |
# File 'lib/projects/model/Project.rb', line 472 def getTimesheetURL return @timesheetUrl end |
#getURL ⇒ Object
-
Get the project URL.
Returns
-
Project URL.
352 353 354 |
# File 'lib/projects/model/Project.rb', line 352 def getURL return @url end |
#getUserURL ⇒ Object
-
Get the user URL.
Returns
-
user URL.
592 593 594 |
# File 'lib/projects/model/Project.rb', line 592 def getUserURL return @userUrl end |
#setActivityURL(activityUrl) ⇒ Object
-
Set the activity URL.
Parameters
- activityUrl
-
URL for the activity.
-
362 363 364 |
# File 'lib/projects/model/Project.rb', line 362 def setActivityURL(activityUrl) @activityUrl = activityUrl end |
#setBugURL(bugUrl) ⇒ Object
-
Set the bug URL.
Parameters
- bugUrl
-
URL for the bug.
-
442 443 444 |
# File 'lib/projects/model/Project.rb', line 442 def setBugURL(bugUrl) @bugUrl = bugUrl end |
#setClosedBugCount(closedBugCount) ⇒ Object
-
Set the closed bug count.
Parameters
- closedBugCount
-
Closed bug count for the project.
-
322 323 324 |
# File 'lib/projects/model/Project.rb', line 322 def setClosedBugCount(closedBugCount) @closedBugCount = closedBugCount end |
#setClosedMilestoneCount(closedMilestoneCount) ⇒ Object
-
Set the closed milestone count.
Parameters
- closedMilestoneCount
-
Closed milestone count for the project.
-
282 283 284 |
# File 'lib/projects/model/Project.rb', line 282 def setClosedMilestoneCount(closedMilestoneCount) @closedMilestoneCount = closedMilestoneCount end |
#setClosedTaskCount(closedTaskCount) ⇒ Object
-
Set the closed task count.
Parameters
- closedTaskCount
-
Closed task count for the project.
-
242 243 244 |
# File 'lib/projects/model/Project.rb', line 242 def setClosedTaskCount(closedTaskCount) @closedTaskCount = closedTaskCount end |
#setCreatedDate(createdDate) ⇒ Object
-
Set the date when the project is being created.
Parameters
- createdDate
-
Created date for the project.
-
102 103 104 |
# File 'lib/projects/model/Project.rb', line 102 def setCreatedDate(createdDate) @createdDate = createdDate end |
#setCreatedDateFormat(createdDateFormat) ⇒ Object
-
Set the created date format for the project.
Parameters
- createdDate
-
Project created date format.
-
122 123 124 |
# File 'lib/projects/model/Project.rb', line 122 def setCreatedDateFormat(createdDateFormat) @createdDateFormat = createdDateFormat end |
#setCreatedDateLong(createdDateLong) ⇒ Object
-
Set the project created date.
Parameters
- createdDateLong
-
Project created date.
-
142 143 144 |
# File 'lib/projects/model/Project.rb', line 142 def setCreatedDateLong(createdDateLong) @createdDateLong = createdDateLong end |
#setDescription(description) ⇒ Object
-
Set the project description.
Parameters
- description
-
Description of the project.
-
162 163 164 |
# File 'lib/projects/model/Project.rb', line 162 def setDescription(description) @description = description end |
#setDocumentURL(documentUrl) ⇒ Object
-
Set the document URL.
Parameters
- documentUrl
-
URL for the document.
-
522 523 524 |
# File 'lib/projects/model/Project.rb', line 522 def setDocumentURL(documentUrl) @documentUrl = documentUrl end |
#setEventURL(eventUrl) ⇒ Object
-
Set the event URL.
Parameters
- eventUrl
-
URL for the event.
-
502 503 504 |
# File 'lib/projects/model/Project.rb', line 502 def setEventURL(eventUrl) @eventUrl = eventUrl end |
#setFolderURL(folderUrl) ⇒ Object
-
Set the folder URL.
Parameters
- folderUrl
-
URL for the folder.
-
542 543 544 |
# File 'lib/projects/model/Project.rb', line 542 def setFolderURL(folderUrl) @folderUrl = folderUrl end |
#setForumURL(forumUrl) ⇒ Object
-
Set the forum URL.
Parameters
- forumUrl
-
URL for the forum.
-
562 563 564 |
# File 'lib/projects/model/Project.rb', line 562 def setForumURL(forumUrl) @forumUrl = forumUrl end |
#setId(id) ⇒ Object
-
Get the project id.
Returns
-
Project id.
28 29 30 |
# File 'lib/projects/model/Project.rb', line 28 def setId(id) @id = id end |
#setMilestoneURL(milestoneUrl) ⇒ Object
-
Set the milestone URL.
Parameters
- milestoneUrl
-
URL for the milestone.
-
382 383 384 |
# File 'lib/projects/model/Project.rb', line 382 def setMilestoneURL(milestoneUrl) @milestoneUrl = milestoneUrl end |
#setName(name) ⇒ Object
-
Set the project name.
Parameters
- name
-
Name of the project.
-
38 39 40 |
# File 'lib/projects/model/Project.rb', line 38 def setName(name) @name = name end |
#setOpenBugCount(openBugCount) ⇒ Object
-
Set the open bug count.
Parameters
- openBugCount
-
Open bug count for the project.
-
302 303 304 |
# File 'lib/projects/model/Project.rb', line 302 def setOpenBugCount(openBugCount) @openBugCount = openBugCount end |
#setOpenMilestoneCount(openMilestoneCount) ⇒ Object
-
Set the open milestone count.
Parameters
- openMilestoneCount
-
Open milestone count for the project.
-
262 263 264 |
# File 'lib/projects/model/Project.rb', line 262 def setOpenMilestoneCount(openMilestoneCount) @openMilestoneCount = openMilestoneCount end |
#setOpenTaskCount(openTaskCount) ⇒ Object
-
Set the open task count.
Parameters
- openTaskCount
-
Open task count for the project.
-
222 223 224 |
# File 'lib/projects/model/Project.rb', line 222 def setOpenTaskCount(openTaskCount) @openTaskCount = openTaskCount end |
#setOwnerId(ownerId) ⇒ Object
-
Set the owner id.
Parameters
- ownerId
-
ID of the owner.
-
202 203 204 |
# File 'lib/projects/model/Project.rb', line 202 def setOwnerId(ownerId) @ownerId = ownerId end |
#setOwnerName(ownerName) ⇒ Object
-
Set the owner name.
Parameters
- ownerName
-
Name of the owner.
-
182 183 184 |
# File 'lib/projects/model/Project.rb', line 182 def setOwnerName(ownerName) @ownerName = ownerName end |
#setStatus(status) ⇒ Object
-
Set the status of the project.
Parameters
- status
-
Status of the project.
-
82 83 84 |
# File 'lib/projects/model/Project.rb', line 82 def setStatus(status) @status = status end |
#setStatusURL(statusUrl) ⇒ Object
-
Set the status URL.
Parameters
- statusUrl
-
URL for the status.
-
482 483 484 |
# File 'lib/projects/model/Project.rb', line 482 def setStatusURL(statusUrl) @statusUrl = statusUrl end |
#setTasklistURL(tasklistUrl) ⇒ Object
-
Set the task list URL.
Parameters
- tasklistUrl
-
URL for the task list.
-
402 403 404 |
# File 'lib/projects/model/Project.rb', line 402 def setTasklistURL(tasklistUrl) @tasklistUrl = tasklistUrl end |
#setTaskURL(taskUrl) ⇒ Object
-
Set the task URL.
Parameters
- taskUrl
-
URL for the task.
-
422 423 424 |
# File 'lib/projects/model/Project.rb', line 422 def setTaskURL(taskUrl) @taskUrl = taskUrl end |
#setTemplateId(templateId) ⇒ Object
-
Set the template id of the project.
Parameters
- templateId
-
ID of the template.
-
58 59 60 61 62 |
# File 'lib/projects/model/Project.rb', line 58 def setTemplateId(templateId) @templateId = templateId end |
#setTimesheetURL(timesheetUrl) ⇒ Object
-
Set the time sheet URL.
Parameters
- timesheetUrl
-
URL for the time sheet.
-
462 463 464 |
# File 'lib/projects/model/Project.rb', line 462 def setTimesheetURL(timesheetUrl) @timesheetUrl = timesheetUrl end |
#setURL(url) ⇒ Object
-
Set the project URL.
Parameters
- url
-
URL for the project.
-
342 343 344 |
# File 'lib/projects/model/Project.rb', line 342 def setURL(url) @url = url end |
#setUserURL(userUrl) ⇒ Object
-
Set the user URL.
Parameters
- userUrl
-
URL for the user.
-
582 583 584 |
# File 'lib/projects/model/Project.rb', line 582 def setUserURL(userUrl) @userUrl = userUrl end |
#toParamMAP ⇒ Object
-
Convert the Project object into HashMap.
Returns
-
HashMap object.
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
# File 'lib/projects/model/Project.rb', line 602 def toParamMAP requestBody = Hash.new if name != nil requestBody["name"] = name end if description != nil requestBody["description"] = description end if status != nil requestBody["status"] = status end if templateId != nil requestBody["template_id"] = templateId end return requestBody end |