Class: TemplateInvocationEvent

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/template_invocation_event.rb

Instance Method Summary collapse

Instance Method Details

#as_raw_continuous_outputObject



4
5
6
7
8
9
10
# File 'app/models/template_invocation_event.rb', line 4

def as_raw_continuous_output
  raw = attributes
  raw['output_type'] = raw.delete('event_type')
  raw['output'] = raw.delete('event')
  raw['timestamp'] = raw['timestamp'].to_f
  raw
end