class Projects::Model::Log

Attributes

billStatus[RW]
hours[RW]
hoursDisplay[RW]
id[RW]
logDate[RW]
logDateFormat[RW]
logDateLong[RW]
minutes[RW]
notes[RW]
ownerId[RW]
ownerName[RW]
projectId[RW]
projectName[RW]
totalMinutes[RW]
url[RW]

Public Instance Methods

getBillStatus() click to toggle source
  • Get the bill status for the log.

Returns

  • Bill status.

# File lib/projects/model/Log.rb, line 189
def getBillStatus
        return @billStatus
end
getDate() click to toggle source
  • Get the log date.

Returns

# File lib/projects/model/Log.rb, line 329
def getDate
        return @logDate
end
getHours() click to toggle source
  • Get the hours for the log.

Returns

# File lib/projects/model/Log.rb, line 69
def getHours
        return @hours
end
getHoursDisplay() click to toggle source
  • Get the hour display format.

Returns

  • Hour display format.

# File lib/projects/model/Log.rb, line 109
def getHoursDisplay
        return @hoursDisplay
end
getId() click to toggle source
  • Get the log id.

Returns

# File lib/projects/model/Log.rb, line 29
def getId
        return @id
end
getLogDate() click to toggle source
  • Get the log date.

Returns

# File lib/projects/model/Log.rb, line 269
def getLogDate
        return @logDate
end
getLogDateFormat() click to toggle source
  • Get the log date format.

Returns

  • Log date format.

# File lib/projects/model/Log.rb, line 289
def getLogDateFormat
        return @logDateFormat
end
getLogDateLong() click to toggle source
  • Get the log date.

Returns

# File lib/projects/model/Log.rb, line 309
def getLogDateLong
        return @logDateLong
end
getMinutes() click to toggle source
  • Get the minutes for the log.

Returns

# File lib/projects/model/Log.rb, line 89
def getMinutes
        return @minutes
end
getNotes() click to toggle source
  • Get the log notes.

Returns

# File lib/projects/model/Log.rb, line 49
def getNotes
        return @notes
end
getOwnerId() click to toggle source
  • Get the owner id.

Returns

# File lib/projects/model/Log.rb, line 149
def getOwnerId
        return @ownerId
end
getOwnerName() click to toggle source
  • Get the owner name.

Returns

# File lib/projects/model/Log.rb, line 169
def getOwnerName
        return @ownerName
end
getProjectId() click to toggle source
  • Get the project id.

Returns

# File lib/projects/model/Log.rb, line 209
def getProjectId
        return @projectId
end
getProjectName() click to toggle source
  • Get the project name.

Returns

# File lib/projects/model/Log.rb, line 229
def getProjectName
        return @projectName
end
getTotalMinutes() click to toggle source
  • Get the total time in minutes for the log.

Returns

  • Total time in minutes for the log.

# File lib/projects/model/Log.rb, line 129
def getTotalMinutes
        return @totalMinutes
end
getURL() click to toggle source
  • Get the URL.

Returns

# File lib/projects/model/Log.rb, line 249
def getURL
        return @url
end
setBillStatus(billStatus) click to toggle source
  • Set the bill status for the log.

Parameters

  • billStatus
    • Bill status for the log.

# File lib/projects/model/Log.rb, line 179
def setBillStatus(billStatus)
        @billStatus = billStatus
end
setDate(date) click to toggle source
  • Set the log date.

Parameters

  • date
    • Date for the log.

# File lib/projects/model/Log.rb, line 319
def setDate(date)
        @logDate = date
end
setHours(hours) click to toggle source
  • Set the hours for the log.

Parameters

  • hours
    • Hours for the log.

# File lib/projects/model/Log.rb, line 59
def setHours(hours)
        @hours = hours
end
setHoursDisplay(hoursDisplay) click to toggle source
  • Set the hour display format.

Parameters

  • hourDisplay
    • Hour display format.

# File lib/projects/model/Log.rb, line 99
def setHoursDisplay(hoursDisplay)
        @hoursDisplay = hoursDisplay
end
setId(id) click to toggle source
  • Set the log id.

Parameters

  • id
    • ID of the log.

# File lib/projects/model/Log.rb, line 19
def setId(id)
        @id = id
end
setLogDate(logDate) click to toggle source
  • Set the log date.

Parameters

  • logDate
    • Date of the log.

# File lib/projects/model/Log.rb, line 259
def setLogDate(logDate)
        @logDate = logDate
end
setLogDateFormat(logDateFormat) click to toggle source
  • Set the log date format.

Parameters

  • logDate
    • Date format of the log.

# File lib/projects/model/Log.rb, line 279
def setLogDateFormat(logDateFormat)
        @logDateFormat = logDateFormat
end
setLogDateLong(logDateLong) click to toggle source
  • Set the log date.

Parameters

  • logDateLong
    • Date for the log.

# File lib/projects/model/Log.rb, line 299
def setLogDateLong(logDateLong)
        @logDateLong = logDateLong
end
setMinutes(minutes) click to toggle source
  • Set the minutes for the log.

Parameters

  • minutes
    • Minutes for the log.

# File lib/projects/model/Log.rb, line 79
def setMinutes(minutes)
        @minutes = minutes
end
setNotes(notes) click to toggle source
  • Set the notes for the log.

Parameters

  • notes
    • Notes for the log.

# File lib/projects/model/Log.rb, line 39
def setNotes(notes)
        @notes = notes
end
setOwnerId(ownerId) click to toggle source
  • Set the owner id.

Parameters

  • ownerId
    • ID of the owner.

# File lib/projects/model/Log.rb, line 139
def setOwnerId(ownerId)
        @ownerId = ownerId
end
setOwnerName(ownerName) click to toggle source
  • Set the owner name.

Parameters

  • ownerName
    • Name of the owner.

# File lib/projects/model/Log.rb, line 159
def setOwnerName(ownerName)
        @ownerName = ownerName
end
setProjectId(projectId) click to toggle source
  • Set the project id.

Parameters

  • projectId
    • ID of the project.

# File lib/projects/model/Log.rb, line 199
def setProjectId(projectId)
        @projectId = projectId
end
setProjectName(projectName) click to toggle source
  • Set the project name.

Parameters

  • projectName
    • Name of the project.

# File lib/projects/model/Log.rb, line 219
def setProjectName(projectName)
        @projectName = projectName
end
setTotalMinutes(totalMinutes) click to toggle source
  • Set the total time in minutes for the log.

Parameters

  • totalMinutes
    • Total time in minutes for the log.

# File lib/projects/model/Log.rb, line 119
def setTotalMinutes(totalMinutes)
        @totalMinutes = totalMinutes
end
setURL(url) click to toggle source
  • Set the URL for the log.

Parameters

  • url
    • URL for the log.

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

Returns

  • HashMap object.

# File lib/projects/model/Log.rb, line 339
def toParamMAP
        requestBody = Hash.new
        
        if logDate != nil
                requestBody["date"] = logDate
        end
        if billStatus != nil
                requestBody["bill_status"] = billStatus
        end
        if hours != nil
                requestBody["hours"] = hours
        end
        if notes != nil
                requestBody["notes"] = notes
        end
        
        return requestBody
end