Class: Projects::Model::Bug
- Inherits:
-
Object
- Object
- Projects::Model::Bug
- Defined in:
- lib/projects/model/Bug.rb
Overview
-
This class is used to make an object for Bug.
Instance Method Summary collapse
-
#getAssigneeId ⇒ Object
-
Get the assignee id.
-
- #getAssigneeName ⇒ Object
-
#getClassificationId ⇒ Object
-
Get the classification id.
-
- #getClassificationType ⇒ Object
- #getCreatedTime ⇒ Object
- #getCreatedTimeFormat ⇒ Object
- #getCreatedTimeLong ⇒ Object
- #getDescription ⇒ Object
-
#getDueDate ⇒ Object
-
Get the due date.
-
-
#getDueDateFormat ⇒ Object
-
Get the due date format.
-
-
#getDueDateLong ⇒ Object
-
Get the due date long.
-
-
#getFlag ⇒ Object
-
Get the flag for the bug.
-
- #getId ⇒ Object
- #getKey ⇒ Object
-
#getMilestoneId ⇒ Object
-
Get the milestone id.
-
-
#getModuleId ⇒ Object
-
Get the module id.
-
-
#getModuleName ⇒ Object
-
Get the module name.
-
- #getProjectId ⇒ Object
- #getReportedPerson ⇒ Object
- #getReporterId ⇒ Object
- #getReproducibleId ⇒ Object
- #getReproducibleType ⇒ Object
- #getSeverityId ⇒ Object
- #getSeverityType ⇒ Object
-
#getStatusId ⇒ Object
-
Get the status id.
-
- #getStatusType ⇒ Object
- #getTimesheetURL ⇒ Object
- #getTitle ⇒ Object
- #getURL ⇒ Object
- #isClosed ⇒ Object
- #setAssigneeId(assigneeId) ⇒ Object
- #setAssigneeName(assigneeName) ⇒ Object
-
#setClassificationId(classificationId) ⇒ Object
-
Set the classification id.
-
- #setClassificationType(classificationType) ⇒ Object
- #setClosed(closed) ⇒ Object
- #setCreatedTime(createdTime) ⇒ Object
- #setCreatedTimeFormat(createdTimeFormat) ⇒ Object
- #setCreatedTimeLong(createdTimeLong) ⇒ Object
- #setDescription(description) ⇒ Object
-
#setDueDate(dueDate) ⇒ Object
-
Set the due date.
-
-
#setDueDateFormat(dueDateFormat) ⇒ Object
-
Set the due date format.
-
-
#setDueDateLong(dueDateLong) ⇒ Object
-
Set the due date long.
-
- #setFlag(flag) ⇒ Object
-
#setId(id) ⇒ Object
-
Set the bug id.
-
- #setKey(key) ⇒ Object
-
#setMilestoneId(milestoneId) ⇒ Object
-
Set the milestone id.
-
-
#setModuleId(moduleId) ⇒ Object
-
Set the module id.
-
-
#setModuleName(moduleName) ⇒ Object
-
Set the module name.
-
- #setProjectId(projectId) ⇒ Object
- #setReportedPerson(reportedPerson) ⇒ Object
- #setReporterId(reporterId) ⇒ Object
- #setReproducibleId(reproducibleId) ⇒ Object
- #setReproducibleType(reproducibleType) ⇒ Object
- #setSeverityId(severityId) ⇒ Object
- #setSeverityType(severityType) ⇒ Object
- #setStatusId(statusId) ⇒ Object
- #setStatusType(statusType) ⇒ Object
- #setTimesheetURL(timesheetUrl) ⇒ Object
- #setTitle(title) ⇒ Object
- #setURL(url) ⇒ Object
-
#toParamMAP ⇒ Object
-
Convert the Bug object into HashMap.
-
Instance Method Details
#getAssigneeId ⇒ Object
-
Get the assignee id.
Returns
-
Assignee id.
270 271 272 |
# File 'lib/projects/model/Bug.rb', line 270 def getAssigneeId return @assigneeId end |
#getAssigneeName ⇒ Object
292 293 294 |
# File 'lib/projects/model/Bug.rb', line 292 def getAssigneeName return @assigneeName end |
#getClassificationId ⇒ Object
-
Get the classification id.
Returns
-
Classification id.
378 379 380 |
# File 'lib/projects/model/Bug.rb', line 378 def getClassificationId return @classificationId end |
#getClassificationType ⇒ Object
400 401 402 |
# File 'lib/projects/model/Bug.rb', line 400 def getClassificationType return @classificationType end |
#getCreatedTime ⇒ Object
205 206 207 |
# File 'lib/projects/model/Bug.rb', line 205 def getCreatedTime return @createdTime end |
#getCreatedTimeFormat ⇒ Object
227 228 229 |
# File 'lib/projects/model/Bug.rb', line 227 def getCreatedTimeFormat return @createdTimeFormat end |
#getCreatedTimeLong ⇒ Object
249 250 251 |
# File 'lib/projects/model/Bug.rb', line 249 def getCreatedTimeLong return @createdTimeLong end |
#getDescription ⇒ Object
139 140 141 |
# File 'lib/projects/model/Bug.rb', line 139 def getDescription return @description end |
#getDueDate ⇒ Object
-
Get the due date.
Returns
-
Due date.
612 613 614 |
# File 'lib/projects/model/Bug.rb', line 612 def getDueDate return @dueDate end |
#getDueDateFormat ⇒ Object
-
Get the due date format.
Returns
-
Due date format.
632 633 634 |
# File 'lib/projects/model/Bug.rb', line 632 def getDueDateFormat return @dueDateFormat end |
#getDueDateLong ⇒ Object
-
Get the due date long.
Returns
-
Due date.
652 653 654 |
# File 'lib/projects/model/Bug.rb', line 652 def getDueDateLong return @dueDateLong end |
#getFlag ⇒ Object
-
Get the flag for the bug.
Returns
-
Flag of the bug.
95 96 97 |
# File 'lib/projects/model/Bug.rb', line 95 def getFlag return @flag end |
#getId ⇒ Object
30 31 32 |
# File 'lib/projects/model/Bug.rb', line 30 def getId return @id end |
#getKey ⇒ Object
52 53 54 |
# File 'lib/projects/model/Bug.rb', line 52 def getKey return @key end |
#getMilestoneId ⇒ Object
-
Get the milestone id.
Returns
-
Milestone id.
592 593 594 |
# File 'lib/projects/model/Bug.rb', line 592 def getMilestoneId return @milestoneId end |
#getModuleId ⇒ Object
-
Get the module id.
Returns
-
Module id.
551 552 553 |
# File 'lib/projects/model/Bug.rb', line 551 def getModuleId return @moduleId end |
#getModuleName ⇒ Object
-
Get the module name.
Returns
-
Module name.
571 572 573 |
# File 'lib/projects/model/Bug.rb', line 571 def getModuleName return @moduleName end |
#getProjectId ⇒ Object
74 75 76 |
# File 'lib/projects/model/Bug.rb', line 74 def getProjectId return @projectId end |
#getReportedPerson ⇒ Object
183 184 185 |
# File 'lib/projects/model/Bug.rb', line 183 def getReportedPerson return @reportedPerson end |
#getReporterId ⇒ Object
161 162 163 |
# File 'lib/projects/model/Bug.rb', line 161 def getReporterId return @reporterId end |
#getReproducibleId ⇒ Object
509 510 511 |
# File 'lib/projects/model/Bug.rb', line 509 def getReproducibleId return @reproducibleId end |
#getReproducibleType ⇒ Object
531 532 533 |
# File 'lib/projects/model/Bug.rb', line 531 def getReproducibleType return @reproducibleType end |
#getSeverityId ⇒ Object
422 423 424 |
# File 'lib/projects/model/Bug.rb', line 422 def getSeverityId return @severityId end |
#getSeverityType ⇒ Object
444 445 446 |
# File 'lib/projects/model/Bug.rb', line 444 def getSeverityType return @severityType end |
#getStatusId ⇒ Object
-
Get the status id.
Returns
-
Status id.
465 466 467 |
# File 'lib/projects/model/Bug.rb', line 465 def getStatusId return @statusId end |
#getStatusType ⇒ Object
487 488 489 |
# File 'lib/projects/model/Bug.rb', line 487 def getStatusType return @statusType end |
#getTimesheetURL ⇒ Object
358 359 360 |
# File 'lib/projects/model/Bug.rb', line 358 def getTimesheetURL return @timesheetUrl end |
#getTitle ⇒ Object
117 118 119 |
# File 'lib/projects/model/Bug.rb', line 117 def getTitle return @title end |
#getURL ⇒ Object
336 337 338 |
# File 'lib/projects/model/Bug.rb', line 336 def getURL return @url end |
#isClosed ⇒ Object
314 315 316 |
# File 'lib/projects/model/Bug.rb', line 314 def isClosed return @closed end |
#setAssigneeId(assigneeId) ⇒ Object
260 261 262 |
# File 'lib/projects/model/Bug.rb', line 260 def setAssigneeId(assigneeId) @assigneeId = assigneeId end |
#setAssigneeName(assigneeName) ⇒ Object
281 282 283 |
# File 'lib/projects/model/Bug.rb', line 281 def setAssigneeName(assigneeName) @assigneeName = assigneeName end |
#setClassificationId(classificationId) ⇒ Object
-
Set the classification id.
Parameters
- classificationId
-
ID of the classification.
-
368 369 370 |
# File 'lib/projects/model/Bug.rb', line 368 def setClassificationId(classificationId) @classificationId = classificationId end |
#setClassificationType(classificationType) ⇒ Object
389 390 391 |
# File 'lib/projects/model/Bug.rb', line 389 def setClassificationType(classificationType) @classificationType = classificationType end |
#setClosed(closed) ⇒ Object
303 304 305 |
# File 'lib/projects/model/Bug.rb', line 303 def setClosed(closed) @closed = closed end |
#setCreatedTime(createdTime) ⇒ Object
194 195 196 |
# File 'lib/projects/model/Bug.rb', line 194 def setCreatedTime(createdTime) @createdTime = createdTime end |
#setCreatedTimeFormat(createdTimeFormat) ⇒ Object
216 217 218 |
# File 'lib/projects/model/Bug.rb', line 216 def setCreatedTimeFormat(createdTimeFormat) @createdTimeFormat = createdTimeFormat end |
#setCreatedTimeLong(createdTimeLong) ⇒ Object
238 239 240 |
# File 'lib/projects/model/Bug.rb', line 238 def setCreatedTimeLong(createdTimeLong) @createdTimeLong = createdTimeLong end |
#setDescription(description) ⇒ Object
128 129 130 |
# File 'lib/projects/model/Bug.rb', line 128 def setDescription(description) @description = description end |
#setDueDate(dueDate) ⇒ Object
-
Set the due date.
Parameters
- dueDate
-
Due date for the bug.
-
602 603 604 |
# File 'lib/projects/model/Bug.rb', line 602 def setDueDate(dueDate) @dueDate = dueDate end |
#setDueDateFormat(dueDateFormat) ⇒ Object
-
Set the due date format.
Parameters
- dueDate
-
Due date format for the bug.
-
622 623 624 |
# File 'lib/projects/model/Bug.rb', line 622 def setDueDateFormat(dueDateFormat) @dueDateFormat = dueDateFormat end |
#setDueDateLong(dueDateLong) ⇒ Object
-
Set the due date long.
Parameters
- dueDateLong
-
Due date for the bug.
-
642 643 644 |
# File 'lib/projects/model/Bug.rb', line 642 def setDueDateLong(dueDateLong) @dueDateLong = dueDateLong end |
#setFlag(flag) ⇒ Object
85 86 87 |
# File 'lib/projects/model/Bug.rb', line 85 def setFlag(flag) @flag = flag end |
#setId(id) ⇒ Object
-
Set the bug id.
Parameters
- id
-
ID of the bug.
-
19 20 21 |
# File 'lib/projects/model/Bug.rb', line 19 def setId(id) @id = id end |
#setKey(key) ⇒ Object
41 42 43 |
# File 'lib/projects/model/Bug.rb', line 41 def setKey(key) @key = key end |
#setMilestoneId(milestoneId) ⇒ Object
-
Set the milestone id.
Parameters
- milestoneId
-
ID of the milestone.
-
581 582 583 |
# File 'lib/projects/model/Bug.rb', line 581 def setMilestoneId(milestoneId) @milestoneId = milestoneId end |
#setModuleId(moduleId) ⇒ Object
-
Set the module id.
Parameters
- moduleId
-
ID of the module.
-
541 542 543 |
# File 'lib/projects/model/Bug.rb', line 541 def setModuleId(moduleId) @moduleId = moduleId end |
#setModuleName(moduleName) ⇒ Object
-
Set the module name.
Parameters
- moduleName
-
Name of the module.
-
561 562 563 |
# File 'lib/projects/model/Bug.rb', line 561 def setModuleName(moduleName) @moduleName = moduleName end |
#setProjectId(projectId) ⇒ Object
63 64 65 |
# File 'lib/projects/model/Bug.rb', line 63 def setProjectId(projectId) @projectId = projectId end |
#setReportedPerson(reportedPerson) ⇒ Object
172 173 174 |
# File 'lib/projects/model/Bug.rb', line 172 def setReportedPerson(reportedPerson) @reportedPerson = reportedPerson end |
#setReporterId(reporterId) ⇒ Object
150 151 152 |
# File 'lib/projects/model/Bug.rb', line 150 def setReporterId(reporterId) @reporterId = reporterId end |
#setReproducibleId(reproducibleId) ⇒ Object
498 499 500 |
# File 'lib/projects/model/Bug.rb', line 498 def setReproducibleId(reproducibleId) @reproducibleId = reproducibleId end |
#setReproducibleType(reproducibleType) ⇒ Object
520 521 522 |
# File 'lib/projects/model/Bug.rb', line 520 def setReproducibleType(reproducibleType) @reproducibleType = reproducibleType end |
#setSeverityId(severityId) ⇒ Object
411 412 413 |
# File 'lib/projects/model/Bug.rb', line 411 def setSeverityId(severityId) @severityId = severityId end |
#setSeverityType(severityType) ⇒ Object
433 434 435 |
# File 'lib/projects/model/Bug.rb', line 433 def setSeverityType(severityType) @severityType = severityType end |
#setStatusId(statusId) ⇒ Object
455 456 457 |
# File 'lib/projects/model/Bug.rb', line 455 def setStatusId(statusId) @statusId = statusId end |
#setStatusType(statusType) ⇒ Object
476 477 478 |
# File 'lib/projects/model/Bug.rb', line 476 def setStatusType(statusType) @statusType = statusType end |
#setTimesheetURL(timesheetUrl) ⇒ Object
347 348 349 |
# File 'lib/projects/model/Bug.rb', line 347 def setTimesheetURL(timesheetUrl) @timesheetUrl = timesheetUrl end |
#setTitle(title) ⇒ Object
106 107 108 |
# File 'lib/projects/model/Bug.rb', line 106 def setTitle(title) @title = title end |
#setURL(url) ⇒ Object
325 326 327 |
# File 'lib/projects/model/Bug.rb', line 325 def setURL(url) @url = url end |
#toParamMAP ⇒ Object
-
Convert the Bug object into HashMap.
Returns
-
HashMap object.
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/projects/model/Bug.rb', line 662 def toParamMAP requestBody = Hash.new if title != nil requestBody["title"] = title end if description != nil requestBody["description"] = description end if assigneeId != nil requestBody["assignee"] = assigneeId end if flag != nil requestBody["flag"] = flag end if classificationId != nil && classificationId > 0 requestBody["classification_id"] = classificationId end if milestoneId != nil && milestoneId > 0 requestBody["milestone_id"] = milestoneId end if dueDate != nil requestBody["due_date"] = dueDate end if moduleId != nil && moduleId > 0 requestBody["module_id"] = moduleId end if severityId != nil && severityId > 0 requestBody["severity_id"] = severityId end if reproducibleId != nil && reproducibleId > 0 requestBody["reproducible_id"] = reproducibleId end return requestBody end |