Class: Projects::Model::Milestone
- Inherits:
-
Object
- Object
- Projects::Model::Milestone
- Defined in:
- lib/projects/model/Milestone.rb
Overview
-
This class is used to make an object for Milestone.
Instance Method Summary collapse
-
#getEndDate ⇒ Object
-
Get the end date of the milestone.
-
-
#getEndDateFormat ⇒ Object
-
Get the end date format.
-
-
#getEndDateLong ⇒ Object
-
Get the end date.
-
-
#getFlag ⇒ Object
-
Get the flag for the milestone.
-
-
#getId ⇒ Object
-
Get the milestone id.
-
-
#getName ⇒ Object
-
Get the milestone name.
-
-
#getOwnerId ⇒ Object
-
Get the owner id.
-
-
#getOwnerName ⇒ Object
-
Get the owner name.
-
-
#getStartDate ⇒ Object
-
Get the start date of the milestone.
-
-
#getStartDateFormat ⇒ Object
-
Get the start date format.
-
-
#getStartDateLong ⇒ Object
-
Get the start date.
-
-
#getStatus ⇒ Object
-
Get the status of the milestone.
-
-
#getStatusURL ⇒ Object
-
Get the status URL.
-
-
#getURL ⇒ Object
-
Get the milestone URL.
-
-
#setEndDate(endDate) ⇒ Object
-
Set the end date of the milestone.
-
-
#setEndDateFormat(endDateFormat) ⇒ Object
-
Set the end date format.
-
-
#setEndDateLong(endDateLong) ⇒ Object
-
Set the end date long.
-
-
#setFlag(flag) ⇒ Object
-
Set the flag for the milestone.
-
- #setId(id) ⇒ Object
-
#setName(name) ⇒ Object
-
Set the milestone name.
-
-
#setOwnerId(ownerId) ⇒ Object
-
Set the owner id.
-
-
#setOwnerName(ownerName) ⇒ Object
-
Set the owner name.
-
-
#setStartDate(startDate) ⇒ Object
-
Set the start date of the milestone.
-
-
#setStartDateFormat(startDateFormat) ⇒ Object
-
Set the start date format of the milestone.
-
-
#setStartDateLong(startDateLong) ⇒ Object
-
Set the start date long of the milestone.
-
-
#setStatus(status) ⇒ Object
-
Set the status of the milestone.
-
-
#setStatusURL(statusUrl) ⇒ Object
-
Set the status URL.
-
-
#setURL(url) ⇒ Object
-
Set the milestone URL.
-
-
#toParamMAP ⇒ Object
-
Convert the Milestone object into HashMap.
-
Instance Method Details
#getEndDate ⇒ Object
-
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 |
#getEndDateFormat ⇒ Object
-
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 |
#getEndDateLong ⇒ Object
-
Get the end date.
Returns
-
End date.
171 172 173 |
# File 'lib/projects/model/Milestone.rb', line 171 def getEndDateLong return @endDateLong end |
#getFlag ⇒ Object
-
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 |
#getId ⇒ Object
-
Get the milestone id.
Returns
-
Milestone id.
31 32 33 |
# File 'lib/projects/model/Milestone.rb', line 31 def getId return @id end |
#getName ⇒ Object
-
Get the milestone name.
Returns
-
Milestone name.
51 52 53 |
# File 'lib/projects/model/Milestone.rb', line 51 def getName return name end |
#getOwnerId ⇒ Object
-
Get the owner id.
Returns
-
Owner id.
211 212 213 |
# File 'lib/projects/model/Milestone.rb', line 211 def getOwnerId return @ownerId end |
#getOwnerName ⇒ Object
-
Get the owner name.
Returns
-
Owner name.
231 232 233 |
# File 'lib/projects/model/Milestone.rb', line 231 def getOwnerName return @ownerName end |
#getStartDate ⇒ Object
-
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 |
#getStartDateFormat ⇒ Object
-
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 |
#getStartDateLong ⇒ Object
-
Get the start date.
Returns
-
Start date.
111 112 113 |
# File 'lib/projects/model/Milestone.rb', line 111 def getStartDateLong return @startDateLong end |
#getStatus ⇒ Object
-
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 |
#getStatusURL ⇒ Object
-
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 |
#getURL ⇒ Object
-
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 |
#toParamMAP ⇒ Object
-
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 |