Class: Reactor::Workflow::Comment
- Inherits:
-
Struct
- Object
- Struct
- Reactor::Workflow::Comment
- Defined in:
- lib/reactor/workflow/comment.rb
Instance Attribute Summary collapse
-
#obj_id ⇒ Object
Returns the value of attribute obj_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
Returns a new instance of Comment.
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/reactor/workflow/comment.rb', line 4 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
#obj_id ⇒ Object
Returns the value of attribute obj_id
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def obj_id @obj_id end |
#receiver ⇒ Object
Returns the value of attribute receiver
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def receiver @receiver end |
#text ⇒ Object
Returns the value of attribute text
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def text @text end |
#time ⇒ Object
Returns the value of attribute time
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def time @time end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def type @type end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'lib/reactor/workflow/comment.rb', line 3 def user @user end |
Instance Method Details
#object ⇒ Object Also known as: obj
15 16 17 |
# File 'lib/reactor/workflow/comment.rb', line 15 def object ::AbstractObj.find(obj_id) end |