Class: Projects::Model::Status
- Inherits:
-
Object
- Object
- Projects::Model::Status
- Defined in:
- lib/projects/model/Status.rb
Overview
-
This class is used to make an object for Status.
Instance Method Summary collapse
-
#getContent ⇒ Object
-
Get the status content.
-
-
#getId ⇒ Object
-
Get the status id.
-
-
#getPostedBy ⇒ Object
-
Get the status posted person id.
-
-
#getPostedPerson ⇒ Object
-
Get the status posted person name.
-
-
#getPostedTime ⇒ Object
-
Get the status posted time.
-
-
#getPostedTimeFormat ⇒ Object
-
Get the status posted time format.
-
-
#getPostedTimeLong ⇒ Object
-
Get the status posted time long.
-
-
#setContent(content) ⇒ Object
-
Set the status content.
-
-
#setId(id) ⇒ Object
-
Set the status id.
-
-
#setPostedBy(postedBy) ⇒ Object
-
Set the status posted person id.
-
-
#setPostedPerson(postedPerson) ⇒ Object
-
Set the status posted person name.
-
-
#setPostedTime(postedTime) ⇒ Object
-
Set the status posted time.
-
-
#setPostedTimeFormat(postedTimeFormat) ⇒ Object
-
Set the status posted time format.
-
-
#setPostedTimeLong(postedTimeLong) ⇒ Object
-
Set the status posted time long.
-
-
#toParamMAP ⇒ Object
-
Convert the Status object into HashMap.
-
Instance Method Details
#getContent ⇒ Object
-
Get the status content.
Returns
-
Status content.
49 50 51 |
# File 'lib/projects/model/Status.rb', line 49 def getContent return @content end |
#getId ⇒ Object
-
Get the status id.
Returns
-
status id.
29 30 31 |
# File 'lib/projects/model/Status.rb', line 29 def getId return @id end |
#getPostedBy ⇒ Object
-
Get the status posted person id.
Returns
-
Id of the person who posted the status.
69 70 71 |
# File 'lib/projects/model/Status.rb', line 69 def getPostedBy return @postedBy end |
#getPostedPerson ⇒ Object
-
Get the status posted person name.
Returns
-
Name of the person who posted the status.
89 90 91 |
# File 'lib/projects/model/Status.rb', line 89 def getPostedPerson() return @postedPerson end |
#getPostedTime ⇒ Object
-
Get the status posted time.
Returns
-
Status poted time.
109 110 111 |
# File 'lib/projects/model/Status.rb', line 109 def getPostedTime return @postedTime end |
#getPostedTimeFormat ⇒ Object
-
Get the status posted time format.
Returns
-
status posted time format.
149 150 151 |
# File 'lib/projects/model/Status.rb', line 149 def getPostedTimeFormat return @postedTimeFormat end |
#getPostedTimeLong ⇒ Object
-
Get the status posted time long.
Returns
-
status posted time long.
129 130 131 |
# File 'lib/projects/model/Status.rb', line 129 def getPostedTimeLong return @postedTimeLong end |
#setContent(content) ⇒ Object
-
Set the status content.
Parameters
- content
-
Content for the status.
-
39 40 41 |
# File 'lib/projects/model/Status.rb', line 39 def setContent(content) @content = content end |
#setId(id) ⇒ Object
-
Set the status id.
Parameters
- id
-
ID of the status.
-
19 20 21 |
# File 'lib/projects/model/Status.rb', line 19 def setId(id) @id = id end |
#setPostedBy(postedBy) ⇒ Object
-
Set the status posted person id.
Parameters
- postedBy
-
ID of the person who posted the status.
-
59 60 61 |
# File 'lib/projects/model/Status.rb', line 59 def setPostedBy(postedBy) @postedBy = postedBy end |
#setPostedPerson(postedPerson) ⇒ Object
-
Set the status posted person name.
Parameters
- postedPerson
-
Name of the person who posted the status.
-
79 80 81 |
# File 'lib/projects/model/Status.rb', line 79 def setPostedPerson(postedPerson) @postedPerson = postedPerson end |
#setPostedTime(postedTime) ⇒ Object
-
Set the status posted time.
Parameters
- postedTime
-
Status posted time.
-
99 100 101 |
# File 'lib/projects/model/Status.rb', line 99 def setPostedTime(postedTime) @postedTime = postedTime end |
#setPostedTimeFormat(postedTimeFormat) ⇒ Object
-
Set the status posted time format.
Parameters
- postedTimeLong
-
Status posted time format.
-
139 140 141 |
# File 'lib/projects/model/Status.rb', line 139 def setPostedTimeFormat(postedTimeFormat) @postedTimeFormat = postedTimeFormat end |
#setPostedTimeLong(postedTimeLong) ⇒ Object
-
Set the status posted time long.
Parameters
- postedTimeLong
-
Status posted time long.
-
119 120 121 |
# File 'lib/projects/model/Status.rb', line 119 def setPostedTimeLong(postedTimeLong) @postedTimeLong = postedTimeLong end |
#toParamMAP ⇒ Object
-
Convert the Status object into HashMap.
Returns
-
HashMap object.
159 160 161 162 163 164 165 |
# File 'lib/projects/model/Status.rb', line 159 def toParamMAP requestBody = Hash.new if content != nil requestBody["content"] = content end return requestBody end |