Class: Reactor::Workflow::Comment

Inherits:
Struct
  • Object
show all
Defined in:
lib/reactor/workflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute object_id



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def object_id
  @object_id
end

#receiverObject

Returns the value of attribute receiver



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def receiver
  @receiver
end

#textObject

Returns the value of attribute text



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def text
  @text
end

#timeObject

Returns the value of attribute time



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def time
  @time
end

#typeObject

Returns the value of attribute type



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def type
  @type
end

#userObject

Returns the value of attribute user



24
25
26
# File 'lib/reactor/workflow.rb', line 24

def user
  @user
end

Instance Method Details

#objectObject Also known as: obj



36
37
38
# File 'lib/reactor/workflow.rb', line 36

def object
  ::AbstractObj.find(self.object_id)
end