Class: Conductor::Worker::Events::WorkflowInputSize

Inherits:
WorkflowEvent show all
Defined in:
lib/conductor/worker/events/workflow_events.rb

Instance Attribute Summary collapse

Attributes inherited from WorkflowEvent

#version, #workflow_type

Attributes inherited from ConductorEvent

#timestamp

Instance Method Summary collapse

Constructor Details

#initialize(workflow_type:, size_bytes:, version: nil) ⇒ WorkflowInputSize

Returns a new instance of WorkflowInputSize.



38
39
40
41
# File 'lib/conductor/worker/events/workflow_events.rb', line 38

def initialize(workflow_type:, size_bytes:, version: nil)
  super(workflow_type: workflow_type, version: version)
  @size_bytes = size_bytes
end

Instance Attribute Details

#size_bytesObject (readonly)

Returns the value of attribute size_bytes.



36
37
38
# File 'lib/conductor/worker/events/workflow_events.rb', line 36

def size_bytes
  @size_bytes
end

Instance Method Details

#to_hObject



43
44
45
# File 'lib/conductor/worker/events/workflow_events.rb', line 43

def to_h
  super.merge(size_bytes: @size_bytes)
end