Class: Projects::Model::Activity

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#getActivityByObject

  • Get who posted the activity.

Returns

  • User who posted the activity.



88
89
90
# File 'lib/projects/model/Activity.rb', line 88

def getActivityBy
  return @activityBy
end

#getActivityForObject

  • Get the activity for which topic.

Returns

  • Th topic of the activity.



168
169
170
# File 'lib/projects/model/Activity.rb', line 168

def getActivityFor
  return @activityFor
end

#getDisplayTimeObject

  • Get the display time for the activity.

Returns

  • Display time for the activity.



128
129
130
# File 'lib/projects/model/Activity.rb', line 128

def getDisplayTime
  return @displayTime
end

#getIdObject

  • Get the activity id.

Returns

  • Activity id.



28
29
30
# File 'lib/projects/model/Activity.rb', line 28

def getId
  return @id
end

#getNameObject

  • Get the activity name.

Returns

  • Activity name.



48
49
50
# File 'lib/projects/model/Activity.rb', line 48

def getName
  return @name
end

#getStateObject

  • Get the activity state.

Returns

  • Activity state.



68
69
70
# File 'lib/projects/model/Activity.rb', line 68

def getState
  return @state
end

#getTimeObject

  • Get the time for the activity done.

Returns

  • Time for the activity done.



148
149
150
# File 'lib/projects/model/Activity.rb', line 148

def getTime
  return @time
end

#getTimeLongObject

  • Get the time long.

Returns

  • Time for the activity.



108
109
110
# File 'lib/projects/model/Activity.rb', line 108

def getTimeLong
  return timeLong
end

#setActivityBy(activityBy) ⇒ Object

  • Set who posted the activity.

Parameters

  • activityBy
    • User who posted the activity.



78
79
80
# File 'lib/projects/model/Activity.rb', line 78

def setActivityBy(activityBy)
  @activityBy = activityBy
end

#setActivityFor(activityFor) ⇒ Object

  • Set the activity for which topic.

Parameters

  • activityFor
    • Topic fo the Activity.



158
159
160
# File 'lib/projects/model/Activity.rb', line 158

def setActivityFor(activityFor)
  @activityFor = activityFor
end

#setDisplayTime(displayTime) ⇒ Object

  • Set the display time for the activity.

Parameters

  • displayTime
    • Display time for the activity.



118
119
120
# File 'lib/projects/model/Activity.rb', line 118

def setDisplayTime(displayTime)
  @displayTime = displayTime
end

#setId(id) ⇒ Object

  • Set the id of the activity.

Parameters

  • id
    • ID of the activity.



18
19
20
# File 'lib/projects/model/Activity.rb', line 18

def setId(id)
  @id = id
end

#setName(name) ⇒ Object

  • Set the name of the activity.

Parameters

  • name
    • Name of the activity.



38
39
40
# File 'lib/projects/model/Activity.rb', line 38

def setName(name)
  @name = name
end

#setState(state) ⇒ Object

  • Set the state of the activity.

Parameters

  • state
    • State of the activity.



58
59
60
# File 'lib/projects/model/Activity.rb', line 58

def setState(state)
  @state = state
end

#setTime(time) ⇒ Object

  • Set the time for the activity done.

Parameters

  • time
    • Time for the activity done.



138
139
140
# File 'lib/projects/model/Activity.rb', line 138

def setTime(time)
  @time = time
end

#setTimeLong(timeLong) ⇒ Object

  • Set the time long.

Parameters

  • timeLong
    • Time for the activity.



98
99
100
# File 'lib/projects/model/Activity.rb', line 98

def setTimeLong(timeLong)
  @timeLong = timeLong
end