Class: Conductor::Worker::Events::WorkflowInputSize
- Inherits:
-
WorkflowEvent
- Object
- ConductorEvent
- WorkflowEvent
- Conductor::Worker::Events::WorkflowInputSize
- Defined in:
- lib/conductor/worker/events/workflow_events.rb
Instance Attribute Summary collapse
-
#size_bytes ⇒ Object
readonly
Returns the value of attribute size_bytes.
Attributes inherited from WorkflowEvent
Attributes inherited from ConductorEvent
Instance Method Summary collapse
-
#initialize(workflow_type:, size_bytes:, version: nil) ⇒ WorkflowInputSize
constructor
A new instance of WorkflowInputSize.
- #to_h ⇒ Object
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_bytes ⇒ Object (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_h ⇒ Object
43 44 45 |
# File 'lib/conductor/worker/events/workflow_events.rb', line 43 def to_h super.merge(size_bytes: @size_bytes) end |