Class: Reactor::Workflow::Comment
- Inherits:
-
Struct
- Object
- Struct
- Reactor::Workflow::Comment
- Defined in:
- lib/reactor/workflow.rb
Instance Attribute Summary collapse
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#text ⇒ Object
Returns the value of attribute text.
-
#time ⇒ Object
Returns the value of attribute time.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(log_entry) ⇒ Comment
constructor
A new instance of Comment.
- #object ⇒ Object (also: #obj)
Constructor Details
#initialize(log_entry) ⇒ Comment
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/reactor/workflow.rb', line 25 def initialize(log_entry) super( parse_time(log_entry['logTime']), log_entry['logText'], log_entry['logType'], log_entry['objectId'], log_entry['receiver'], log_entry['userLogin'] ) end |
Instance Attribute Details
#object_id ⇒ Object
Returns the value of attribute object_id
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def object_id @object_id end |
#receiver ⇒ Object
Returns the value of attribute receiver
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def receiver @receiver end |
#text ⇒ Object
Returns the value of attribute text
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def text @text end |
#time ⇒ Object
Returns the value of attribute time
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def time @time end |
#type ⇒ Object
Returns the value of attribute type
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def type @type end |
#user ⇒ Object
Returns the value of attribute user
24 25 26 |
# File 'lib/reactor/workflow.rb', line 24 def user @user end |
Instance Method Details
#object ⇒ Object Also known as: obj
36 37 38 |
# File 'lib/reactor/workflow.rb', line 36 def object ::AbstractObj.find(self.object_id) end |