class Projects::Model::Bug

Attributes

assigneeId[RW]
assigneeName[RW]
classificationId[RW]
classificationType[RW]
closed[RW]
createdTime[RW]
createdTimeFormat[RW]
createdTimeLong[RW]
description[RW]
dueDate[RW]
dueDateFormat[RW]
dueDateLong[RW]
flag[RW]
id[RW]
key[RW]
milestoneId[RW]
moduleId[RW]
moduleName[RW]
projectId[RW]
reportedPerson[RW]
reporterId[RW]
reproducibleId[RW]
reproducibleType[RW]
severityId[RW]
severityType[RW]
statusId[RW]
statusType[RW]
timesheetUrl[RW]
title[RW]
url[RW]

Public Instance Methods

getAssigneeId() click to toggle source
  • Get the assignee id.

Returns

  • Assignee id.

# File lib/projects/model/Bug.rb, line 270
def getAssigneeId
        return @assigneeId
end
getAssigneeName() click to toggle source
  • Get the assignee name.

Returns

  • Assignee name.

# File lib/projects/model/Bug.rb, line 292
def getAssigneeName
        return @assigneeName
end
getClassificationId() click to toggle source
  • Get the classification id.

Returns

  • Classification id.

# File lib/projects/model/Bug.rb, line 378
def getClassificationId
        return @classificationId
end
getClassificationType() click to toggle source
  • Get the classification type.

Returns

  • Classification type.

# File lib/projects/model/Bug.rb, line 400
def getClassificationType
        return @classificationType
end
getCreatedTime() click to toggle source
  • Get the created time.

Returns

  • created time for the bug.

# File lib/projects/model/Bug.rb, line 205
def getCreatedTime
        return @createdTime
end
getCreatedTimeFormat() click to toggle source
  • Get the created time format.

Returns

  • Created time format for the bug.

# File lib/projects/model/Bug.rb, line 227
def getCreatedTimeFormat
        return @createdTimeFormat
end
getCreatedTimeLong() click to toggle source
  • Get the created time long.

Returns

  • Created time for the bug.

# File lib/projects/model/Bug.rb, line 249
def getCreatedTimeLong
        return @createdTimeLong
end
getDescription() click to toggle source
  • Get the bug description.

Returns

  • Bug description.

# File lib/projects/model/Bug.rb, line 139
def getDescription
        return @description
end
getDueDate() click to toggle source
  • Get the due date.

Returns

  • Due date.

# File lib/projects/model/Bug.rb, line 612
def getDueDate
        return @dueDate
end
getDueDateFormat() click to toggle source
  • Get the due date format.

Returns

  • Due date format.

# File lib/projects/model/Bug.rb, line 632
def getDueDateFormat
        return @dueDateFormat
end
getDueDateLong() click to toggle source
  • Get the due date long.

Returns

  • Due date.

# File lib/projects/model/Bug.rb, line 652
def getDueDateLong
        return @dueDateLong
end
getFlag() click to toggle source
  • Get the flag for the bug.

Returns

  • Flag of the bug.

# File lib/projects/model/Bug.rb, line 95
def getFlag
        return @flag
end
getId() click to toggle source
  • Get the bug id.

Returns

# File lib/projects/model/Bug.rb, line 30
def getId
        return @id
end
getKey() click to toggle source
  • Get the key for the bug.

Returns

# File lib/projects/model/Bug.rb, line 52
def getKey
        return @key
end
getMilestoneId() click to toggle source
  • Get the milestone id.

Returns

# File lib/projects/model/Bug.rb, line 592
def getMilestoneId
        return @milestoneId
end
getModuleId() click to toggle source
  • Get the module id.

Returns

  • Module id.

# File lib/projects/model/Bug.rb, line 551
def getModuleId
        return @moduleId
end
getModuleName() click to toggle source
  • Get the module name.

Returns

  • Module name.

# File lib/projects/model/Bug.rb, line 571
def getModuleName
        return @moduleName
end
getProjectId() click to toggle source
  • get the project id.

Returns

# File lib/projects/model/Bug.rb, line 74
def getProjectId
        return @projectId
end
getReportedPerson() click to toggle source
  • Get the reported person.

Returns

  • Person who reported the bug.

# File lib/projects/model/Bug.rb, line 183
def getReportedPerson
        return @reportedPerson
end
getReporterId() click to toggle source
  • Get the reporter id.

Returns

  • Reporter id.

# File lib/projects/model/Bug.rb, line 161
def getReporterId
        return @reporterId
end
getReproducibleId() click to toggle source
  • Get the reproducible id.

Returns

  • Reproducible id of the bug.

# File lib/projects/model/Bug.rb, line 509
def getReproducibleId
        return @reproducibleId
end
getReproducibleType() click to toggle source
  • Get the reproducible type.

Returns

  • Reproducible type of the bug.

# File lib/projects/model/Bug.rb, line 531
def getReproducibleType
        return @reproducibleType
end
getSeverityId() click to toggle source
  • Get the severity id.

Returns

  • Severity id.

# File lib/projects/model/Bug.rb, line 422
def getSeverityId
        return @severityId
end
getSeverityType() click to toggle source
  • Get the severity type.

Returns

  • Severity type.

# File lib/projects/model/Bug.rb, line 444
def getSeverityType
        return @severityType
end
getStatusId() click to toggle source
  • Get the status id.

Returns

# File lib/projects/model/Bug.rb, line 465
def getStatusId
        return @statusId
end
getStatusType() click to toggle source
  • Get the status type.

Returns

# File lib/projects/model/Bug.rb, line 487
def getStatusType
        return @statusType
end
getTimesheetURL() click to toggle source
  • Get the time sheet URL.

Returns

  • Time sheet URL.

# File lib/projects/model/Bug.rb, line 358
def getTimesheetURL
        return @timesheetUrl
end
getTitle() click to toggle source
  • Get the bug title.

Returns

# File lib/projects/model/Bug.rb, line 117
def getTitle
        return @title
end
getURL() click to toggle source
  • Get the bug URL.

Returns

# File lib/projects/model/Bug.rb, line 336
def getURL
        return @url
end
isClosed() click to toggle source
  • Get the bug is closed or not.

Returns

  • true, if the big is closed else returns false.

# File lib/projects/model/Bug.rb, line 314
def isClosed
        return @closed
end
setAssigneeId(assigneeId) click to toggle source
  • Set the assignee id for the bug.

Parameters

  • assigneeId
    • ID of the assignee.

# File lib/projects/model/Bug.rb, line 260
def setAssigneeId(assigneeId)
        @assigneeId = assigneeId
end
setAssigneeName(assigneeName) click to toggle source
  • Set the assignee name.

Parameters

  • assigneeName
    • Name of the assignee.

# File lib/projects/model/Bug.rb, line 281
def setAssigneeName(assigneeName)
        @assigneeName = assigneeName
end
setClassificationId(classificationId) click to toggle source
  • Set the classification id.

Parameters

  • classificationId
    • ID of the classification.

# File lib/projects/model/Bug.rb, line 368
def setClassificationId(classificationId)
        @classificationId = classificationId
end
setClassificationType(classificationType) click to toggle source
  • Set the classification type.

Parameters

  • classificationType
    • Type of the classification.

# File lib/projects/model/Bug.rb, line 389
def setClassificationType(classificationType)
        @classificationType = classificationType
end
setClosed(closed) click to toggle source
  • Set the bug is closed or not.

Parameters

  • closed
    • Bug is closed or not.

# File lib/projects/model/Bug.rb, line 303
def setClosed(closed)
        @closed = closed
end
setCreatedTime(createdTime) click to toggle source
  • Set the created time.

Parameters

  • createdTime
    • Created time for the bug.

# File lib/projects/model/Bug.rb, line 194
def setCreatedTime(createdTime)
        @createdTime = createdTime
end
setCreatedTimeFormat(createdTimeFormat) click to toggle source
  • Set the created time format.

Parameters

  • createdTime
    • Created time format for the bug.

# File lib/projects/model/Bug.rb, line 216
def setCreatedTimeFormat(createdTimeFormat)
        @createdTimeFormat = createdTimeFormat
end
setCreatedTimeLong(createdTimeLong) click to toggle source
  • Set the created time long.

Parameters

  • createdTimeLong
    • Created time for the bug.

# File lib/projects/model/Bug.rb, line 238
def setCreatedTimeLong(createdTimeLong)
        @createdTimeLong = createdTimeLong
end
setDescription(description) click to toggle source
  • Set the bug description.

Parameters

  • description
    • Description for the bug.

# File lib/projects/model/Bug.rb, line 128
def setDescription(description)
        @description = description
end
setDueDate(dueDate) click to toggle source
  • Set the due date.

Parameters

  • dueDate
    • Due date for the bug.

# File lib/projects/model/Bug.rb, line 602
def setDueDate(dueDate)
        @dueDate = dueDate
end
setDueDateFormat(dueDateFormat) click to toggle source
  • Set the due date format.

Parameters

  • dueDate
    • Due date format for the bug.

# File lib/projects/model/Bug.rb, line 622
def setDueDateFormat(dueDateFormat)
        @dueDateFormat = dueDateFormat
end
setDueDateLong(dueDateLong) click to toggle source
  • Set the due date long.

Parameters

  • dueDateLong
    • Due date for the bug.

# File lib/projects/model/Bug.rb, line 642
def setDueDateLong(dueDateLong)
        @dueDateLong = dueDateLong
end
setFlag(flag) click to toggle source
  • Set the flag for the bug.

Parameters

  • flag
    • Flag for the bug.

# File lib/projects/model/Bug.rb, line 85
def setFlag(flag)
        @flag = flag
end
setId(id) click to toggle source
  • Set the bug id.

Parameters

  • id
    • ID of the bug.

# File lib/projects/model/Bug.rb, line 19
def setId(id)
        @id = id
end
setKey(key) click to toggle source
  • Set the key for the bug.

Parameters

  • key
    • Key for the bug.

# File lib/projects/model/Bug.rb, line 41
def setKey(key)
        @key = key
end
setMilestoneId(milestoneId) click to toggle source
  • Set the milestone id.

Parameters

  • milestoneId
    • ID of the milestone.

# File lib/projects/model/Bug.rb, line 581
def setMilestoneId(milestoneId)
        @milestoneId = milestoneId
end
setModuleId(moduleId) click to toggle source
  • Set the module id.

Parameters

  • moduleId
    • ID of the module.

# File lib/projects/model/Bug.rb, line 541
def setModuleId(moduleId)
        @moduleId = moduleId
end
setModuleName(moduleName) click to toggle source
  • Set the module name.

Parameters

  • moduleName
    • Name of the module.

# File lib/projects/model/Bug.rb, line 561
def setModuleName(moduleName)
        @moduleName = moduleName
end
setProjectId(projectId) click to toggle source
  • Set the project id.

Parameters

  • projectId
    • ID of the project.

# File lib/projects/model/Bug.rb, line 63
def setProjectId(projectId)
        @projectId = projectId
end
setReportedPerson(reportedPerson) click to toggle source
  • Set the reported person.

Parameters

  • reportedPerson
    • Person who is reporting the bug.

# File lib/projects/model/Bug.rb, line 172
def setReportedPerson(reportedPerson)
        @reportedPerson = reportedPerson
end
setReporterId(reporterId) click to toggle source
  • Set the reporter id.

Parameters

  • reporterId
    • ID of the reporter.

# File lib/projects/model/Bug.rb, line 150
def setReporterId(reporterId)
        @reporterId = reporterId
end
setReproducibleId(reproducibleId) click to toggle source
  • Set the reproducible id.

Parameters

  • reproducibleId
    • Reproducible id of the bug.

# File lib/projects/model/Bug.rb, line 498
def setReproducibleId(reproducibleId)
        @reproducibleId = reproducibleId
end
setReproducibleType(reproducibleType) click to toggle source
  • Set the reproducible type.

Parameters

  • reproducibleType
    • Reproducible type of the bug.

# File lib/projects/model/Bug.rb, line 520
def setReproducibleType(reproducibleType)
        @reproducibleType = reproducibleType
end
setSeverityId(severityId) click to toggle source
  • Set the severity id.

Parameters

  • severityId
    • ID of the severity.

# File lib/projects/model/Bug.rb, line 411
def setSeverityId(severityId)
        @severityId = severityId
end
setSeverityType(severityType) click to toggle source
  • Set the severity type.

Parameters

  • severityType
    • Type of the severity.

# File lib/projects/model/Bug.rb, line 433
def setSeverityType(severityType)
        @severityType = severityType
end
setStatusId(statusId) click to toggle source
  • Set the status id.

Parameters

  • statusId
    • ID of the status.

# File lib/projects/model/Bug.rb, line 455
def setStatusId(statusId)
        @statusId = statusId
end
setStatusType(statusType) click to toggle source
  • Set the status type.

Parameters

  • statusType
    • Type of the status.

# File lib/projects/model/Bug.rb, line 476
def setStatusType(statusType)
        @statusType = statusType
end
setTimesheetURL(timesheetUrl) click to toggle source
  • Set the time sheet URL.

Parameters

  • timesheetUrl
    • URL for the time sheet.

# File lib/projects/model/Bug.rb, line 347
def setTimesheetURL(timesheetUrl)
        @timesheetUrl = timesheetUrl
end
setTitle(title) click to toggle source
  • Set the bug title.

Parameters

  • title
    • Title for the bug.

# File lib/projects/model/Bug.rb, line 106
def setTitle(title)
        @title = title
end
setURL(url) click to toggle source
  • Set the bug URL.

Parameters

  • url
    • URL for the bug.

# File lib/projects/model/Bug.rb, line 325
def setURL(url)
        @url = url
end
toParamMAP() click to toggle source
  • Convert the Bug object into HashMap.

Returns

  • HashMap object.

# 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