Class: Projects::Model::Milestone

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#getEndDateObject

  • Get the end date of the milestone.

Returns

  • End date of the milestone.



131
132
133
# File 'lib/projects/model/Milestone.rb', line 131

def getEndDate
  return @endDate
end

#getEndDateFormatObject

  • Get the end date format.

Returns

  • End date format.



151
152
153
# File 'lib/projects/model/Milestone.rb', line 151

def getEndDateFormat
  return @endDateFormat
end

#getEndDateLongObject

  • Get the end date.

Returns

  • End date.



171
172
173
# File 'lib/projects/model/Milestone.rb', line 171

def getEndDateLong
  return @endDateLong
end

#getFlagObject

  • Get the flag for the milestone.

Returns

  • Flag for the milestone.



251
252
253
# File 'lib/projects/model/Milestone.rb', line 251

def getFlag
  return @flag
end

#getIdObject

  • Get the milestone id.

Returns

  • Milestone id.



31
32
33
# File 'lib/projects/model/Milestone.rb', line 31

def getId
  return @id
end

#getNameObject

  • Get the milestone name.

Returns

  • Milestone name.



51
52
53
# File 'lib/projects/model/Milestone.rb', line 51

def getName
  return name
end

#getOwnerIdObject

  • Get the owner id.

Returns

  • Owner id.



211
212
213
# File 'lib/projects/model/Milestone.rb', line 211

def getOwnerId
  return @ownerId
end

#getOwnerNameObject

  • Get the owner name.

Returns

  • Owner name.



231
232
233
# File 'lib/projects/model/Milestone.rb', line 231

def getOwnerName
  return @ownerName
end

#getStartDateObject

  • Get the start date of the milestone.

Returns

  • Start date of the milestone.



71
72
73
# File 'lib/projects/model/Milestone.rb', line 71

def getStartDate
  return @startDate
end

#getStartDateFormatObject

  • Get the start date format.

Returns

  • Start date format.



91
92
93
# File 'lib/projects/model/Milestone.rb', line 91

def getStartDateFormat
  return @startDateFormat
end

#getStartDateLongObject

  • Get the start date.

Returns

  • Start date.



111
112
113
# File 'lib/projects/model/Milestone.rb', line 111

def getStartDateLong
  return @startDateLong
end

#getStatusObject

  • Get the status of the milestone.

Returns

  • Milestone status.



191
192
193
# File 'lib/projects/model/Milestone.rb', line 191

def getStatus
  return @status
end

#getStatusURLObject

  • Get the status URL.

  • status URL for the milestone.



289
290
291
# File 'lib/projects/model/Milestone.rb', line 289

def getStatusURL
  return statusUrl
end

#getURLObject

  • Get the milestone URL.

Returns

  • Milestone URL.



271
272
273
# File 'lib/projects/model/Milestone.rb', line 271

def getURL
  return @url
end

#setEndDate(endDate) ⇒ Object

  • Set the end date of the milestone.

Parameters

  • endDate
    • End date of the milestone.



121
122
123
# File 'lib/projects/model/Milestone.rb', line 121

def setEndDate(endDate)
  @endDate = endDate
end

#setEndDateFormat(endDateFormat) ⇒ Object

  • Set the end date format.

Parameters

  • endDateLong
    • End date format of the milestone.



141
142
143
# File 'lib/projects/model/Milestone.rb', line 141

def setEndDateFormat(endDateFormat)
  @endDateFormat = endDateFormat
end

#setEndDateLong(endDateLong) ⇒ Object

  • Set the end date long.

Parameters

  • endDateLong
    • End date long of the milestone.



161
162
163
# File 'lib/projects/model/Milestone.rb', line 161

def setEndDateLong(endDateLong)
  @endDateLong = endDateLong
end

#setFlag(flag) ⇒ Object

  • Set the flag for the milestone.

Parameters

  • flag
    • Flag for the milestone.



241
242
243
# File 'lib/projects/model/Milestone.rb', line 241

def setFlag(flag)
  @flag = flag
end

#setId(id) ⇒ Object



21
22
23
# File 'lib/projects/model/Milestone.rb', line 21

def setId(id)
  @id = id
end

#setName(name) ⇒ Object

  • Set the milestone name.

Parameters

  • name
    • Name of the milestone.



41
42
43
# File 'lib/projects/model/Milestone.rb', line 41

def setName(name)
  @name = name
end

#setOwnerId(ownerId) ⇒ Object

  • Set the owner id.

Parameters

  • ownerId
    • ID of the owner.



201
202
203
# File 'lib/projects/model/Milestone.rb', line 201

def setOwnerId(ownerId)
  @ownerId = ownerId
end

#setOwnerName(ownerName) ⇒ Object

  • Set the owner name.

Parameters

  • ownerName
    • Name of the owner.



221
222
223
# File 'lib/projects/model/Milestone.rb', line 221

def setOwnerName(ownerName)
  @ownerName = ownerName
end

#setStartDate(startDate) ⇒ Object

  • Set the start date of the milestone.

Parameters

  • startDate
    • Start date of the milestone.



61
62
63
# File 'lib/projects/model/Milestone.rb', line 61

def setStartDate(startDate)
  @startDate = startDate
end

#setStartDateFormat(startDateFormat) ⇒ Object

  • Set the start date format of the milestone.

Parameters

  • startDateLong
    • Start date format of the milestone.



81
82
83
# File 'lib/projects/model/Milestone.rb', line 81

def setStartDateFormat(startDateFormat)
  @startDateFormat = startDateFormat
end

#setStartDateLong(startDateLong) ⇒ Object

  • Set the start date long of the milestone.

Parameters

  • startDateLong
    • Start date long of the milestone.



101
102
103
# File 'lib/projects/model/Milestone.rb', line 101

def setStartDateLong(startDateLong)
  @startDateLong = startDateLong
end

#setStatus(status) ⇒ Object

  • Set the status of the milestone.

Parameters

  • status
    • Status of the milestone.



181
182
183
# File 'lib/projects/model/Milestone.rb', line 181

def setStatus(status)
  @status = status
end

#setStatusURL(statusUrl) ⇒ Object

  • Set the status URL.

Parameters

  • statusUrl
    • Status URL for the milestone.



281
282
283
# File 'lib/projects/model/Milestone.rb', line 281

def setStatusURL(statusUrl)
  @statusUrl = statusUrl
end

#setURL(url) ⇒ Object

  • Set the milestone URL.

Parameters

  • url
    • URL for the milestone.



261
262
263
# File 'lib/projects/model/Milestone.rb', line 261

def setURL(url)
  @url = url
end

#toParamMAPObject

  • Convert the Milestone object into HashMap.

Returns

  • HashMap object.



299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/projects/model/Milestone.rb', line 299

def toParamMAP
  requestBody = Hash.new

  if name != nil
    requestBody["name"] = name
  end
  if startDate != nil
    requestBody["start_date"] = startDate
  end
  if endDate != nil
    requestBody["end_date"] = endDate
  end
  if ownerId != nil
    requestBody["owner"] = ownerId
  end
  if flag != nil
    requestBody["flag"] = flag
  end
  
  return requestBody
end