Class: Projects::Model::Status

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#getContentObject

  • Get the status content.

Returns

  • Status content.


49
50
51
# File 'lib/projects/model/Status.rb', line 49

def getContent
	return @content
end

#getIdObject

  • Get the status id.

Returns

  • status id.


29
30
31
# File 'lib/projects/model/Status.rb', line 29

def getId
	return @id
end

#getPostedByObject

  • 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

#getPostedPersonObject

  • 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

#getPostedTimeObject

  • 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

#getPostedTimeFormatObject

  • 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

#getPostedTimeLongObject

  • 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

#toParamMAPObject

  • 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