Class: Projects::Model::Comment
- Inherits:
-
Object
- Object
- Projects::Model::Comment
- Defined in:
- lib/projects/model/Comment.rb
Overview
- This class is used to make an object for Comment.
Instance Method Summary collapse
-
#getAddedBy ⇒ Object
- Get the comment added person id.
-
#getAddedPerson ⇒ Object
- Get the comment added person.
-
#getContent ⇒ Object
- Get the comment content.
-
#getCreatedTime ⇒ Object
- Get the created time.
-
#getCreatedTimeFormat ⇒ Object
- Get the created time format.
-
#getCreatedTimeLong ⇒ Object
- Get the created time long.
-
#getId ⇒ Object
- Get the comment id.
-
#getPostDate ⇒ Object
- Get the comment posted date.
-
#getPostDateFormat ⇒ Object
- Get the comment posted date format.
-
#getPostDateLong ⇒ Object
- Get the comment posted date long.
-
#getPostedBy ⇒ Object
- Get the comment posted person id.
-
#getPostedPerson ⇒ Object
- Get the comment posted person.
-
#getUpdatedBy ⇒ Object
- Get the comment updated person id.
-
#setAddedBy(addedBy) ⇒ Object
- Set the id for the comment added person.
-
#setAddedPerson(addedPerson) ⇒ Object
- Set the comment added person.
-
#setContent(content) ⇒ Object
- Set the comment content.
-
#setCreatedTime(createdTime) ⇒ Object
- Set the created time.
-
#setCreatedTimeFormat(createdTimeFormat) ⇒ Object
- Set the created time format.
-
#setCreatedTimeLong(createdTimeLong) ⇒ Object
- Set the created time long.
-
#setId(id) ⇒ Object
- Set the comment id.
-
#setPostDate(postDate) ⇒ Object
- Set the comment posted date.
-
#setPostDateFormat(postDateFormat) ⇒ Object
- Set the comment posted date format.
-
#setPostDateLong(postDateLong) ⇒ Object
- Set the comment posted date long.
-
#setPostedBy(postedBy) ⇒ Object
- Set the comment posted person id.
-
#setPostedPerson(postedPerson) ⇒ Object
- Set the comment posted person.
- #setUpdatedBy(updatedBy) ⇒ Object
-
#toParamMAP ⇒ Object
- Convert the Comment object into HashMap.
Instance Method Details
#getAddedBy ⇒ Object
- Get the comment added person id.
Returns
- Id of the person who added the comment.
129 130 131 |
# File 'lib/projects/model/Comment.rb', line 129 def getAddedBy return @addedBy end |
#getAddedPerson ⇒ Object
- Get the comment added person.
Returns
- Person who added comment.
149 150 151 |
# File 'lib/projects/model/Comment.rb', line 149 def getAddedPerson return @addedPerson end |
#getContent ⇒ Object
- Get the comment content.
Returns
- Comment content.
49 50 51 |
# File 'lib/projects/model/Comment.rb', line 49 def getContent return @content end |
#getCreatedTime ⇒ Object
- Get the created time.
Returns
- Created time.
69 70 71 |
# File 'lib/projects/model/Comment.rb', line 69 def getCreatedTime return @createdTime end |
#getCreatedTimeFormat ⇒ Object
- Get the created time format.
Returns
- Created time format.
89 90 91 |
# File 'lib/projects/model/Comment.rb', line 89 def getCreatedTimeFormat return @createdTimeFormat end |
#getCreatedTimeLong ⇒ Object
- Get the created time long.
Returns
- Created time.
109 110 111 |
# File 'lib/projects/model/Comment.rb', line 109 def getCreatedTimeLong return @createdTimeLong end |
#getId ⇒ Object
- Get the comment id.
Returns
- Comment id.
29 30 31 |
# File 'lib/projects/model/Comment.rb', line 29 def getId return @id end |
#getPostDate ⇒ Object
- Get the comment posted date.
Returns
- Date at which comment is posted.
230 231 232 |
# File 'lib/projects/model/Comment.rb', line 230 def getPostDate return @postDate end |
#getPostDateFormat ⇒ Object
- Get the comment posted date format.
Returns
- Date format of the posted comment.
250 251 252 |
# File 'lib/projects/model/Comment.rb', line 250 def getPostDateFormat return @postDateFormat end |
#getPostDateLong ⇒ Object
- Get the comment posted date long.
Returns
- The date on which the comment is posted.
270 271 272 |
# File 'lib/projects/model/Comment.rb', line 270 def getPostDateLong return @postDateLong end |
#getPostedBy ⇒ Object
- Get the comment posted person id.
Returns
- Id of the person who posted the comment.
190 191 192 |
# File 'lib/projects/model/Comment.rb', line 190 def getPostedBy return @postedBy end |
#getPostedPerson ⇒ Object
- Get the comment posted person.
Returns
- Person who posted the comment.
210 211 212 |
# File 'lib/projects/model/Comment.rb', line 210 def getPostedPerson return @postedPerson end |
#getUpdatedBy ⇒ Object
- Get the comment updated person id.
Returns
- Id of the person who updated the comment.
170 171 172 |
# File 'lib/projects/model/Comment.rb', line 170 def getUpdatedBy return @updatedBy end |
#setAddedBy(addedBy) ⇒ Object
- Set the id for the comment added person.
Parameters
- * addedBy
- ID of the person who added the comment.
119 120 121 |
# File 'lib/projects/model/Comment.rb', line 119 def setAddedBy(addedBy) @addedBy = addedBy end |
#setAddedPerson(addedPerson) ⇒ Object
- Set the comment added person.
Parameters
- * addedPerson
- Person who added comment.
139 140 141 |
# File 'lib/projects/model/Comment.rb', line 139 def setAddedPerson(addedPerson) @addedPerson = addedPerson end |
#setContent(content) ⇒ Object
- Set the comment content.
Parameters
- * content
- Content for the comment.
39 40 41 |
# File 'lib/projects/model/Comment.rb', line 39 def setContent(content) @content = content end |
#setCreatedTime(createdTime) ⇒ Object
- Set the created time.
Parameters
- * createdTime
- Created time for the comment.
59 60 61 |
# File 'lib/projects/model/Comment.rb', line 59 def setCreatedTime(createdTime) @createdTime = createdTime end |
#setCreatedTimeFormat(createdTimeFormat) ⇒ Object
- Set the created time format.
Parameters
- * createdTime
- Created time format for the comment.
79 80 81 |
# File 'lib/projects/model/Comment.rb', line 79 def setCreatedTimeFormat(createdTimeFormat) @createdTimeFormat = createdTimeFormat end |
#setCreatedTimeLong(createdTimeLong) ⇒ Object
- Set the created time long.
Parameters
- * createdTimeLong
- Created time for the comment.
99 100 101 |
# File 'lib/projects/model/Comment.rb', line 99 def setCreatedTimeLong(createdTimeLong) @createdTimeLong = createdTimeLong end |
#setId(id) ⇒ Object
- Set the comment id.
Parameters
- * id
- ID of the comment.
19 20 21 |
# File 'lib/projects/model/Comment.rb', line 19 def setId(id) @id = id end |
#setPostDate(postDate) ⇒ Object
- Set the comment posted date.
Parameters
- * postDate
- Date at which comment is posted.
220 221 222 |
# File 'lib/projects/model/Comment.rb', line 220 def setPostDate(postDate) @postDate = postDate end |
#setPostDateFormat(postDateFormat) ⇒ Object
- Set the comment posted date format.
Parameters
- * postDate
- Date format of the posted comment.
240 241 242 |
# File 'lib/projects/model/Comment.rb', line 240 def setPostDateFormat(postDateFormat) @postDateFormat = postDateFormat end |
#setPostDateLong(postDateLong) ⇒ Object
- Set the comment posted date long.
Parameters
- * postDateLong
- Was was the comment posted(date).
260 261 262 |
# File 'lib/projects/model/Comment.rb', line 260 def setPostDateLong(postDateLong) @postDateLong = postDateLong end |
#setPostedBy(postedBy) ⇒ Object
- Set the comment posted person id.
Parameters
- * postedBy
- Id of the person who posted the comment.
180 181 182 |
# File 'lib/projects/model/Comment.rb', line 180 def setPostedBy(postedBy) @postedBy = postedBy end |
#setPostedPerson(postedPerson) ⇒ Object
- Set the comment posted person.
Parameters
- * postedPerson
- Person who posted the comment.
200 201 202 |
# File 'lib/projects/model/Comment.rb', line 200 def setPostedPerson(postedPerson) @postedPerson = postedPerson end |
#setUpdatedBy(updatedBy) ⇒ Object
160 161 162 |
# File 'lib/projects/model/Comment.rb', line 160 def setUpdatedBy(updatedBy) @updatedBy = updatedBy end |
#toParamMAP ⇒ Object
- Convert the Comment object into HashMap.
Returns
- HashMap object.
280 281 282 283 284 285 286 |
# File 'lib/projects/model/Comment.rb', line 280 def toParamMAP requestBody = Hash.new if content != nil requestBody["content"] = content end return requestBody end |