Module: Temporal::Metadata
- Extended by:
- Concerns::Payloads
- Defined in:
- lib/temporal/metadata.rb,
lib/temporal/metadata/base.rb,
lib/temporal/metadata/activity.rb,
lib/temporal/metadata/workflow.rb,
lib/temporal/metadata/workflow_task.rb
Defined Under Namespace
Classes: Activity, Base, Workflow, WorkflowTask
Constant Summary collapse
- ACTIVITY_TYPE =
:activity
- WORKFLOW_TASK_TYPE =
:workflow_task
- WORKFLOW_TYPE =
:workflow
Class Method Summary collapse
Methods included from Concerns::Payloads
from_details_payloads, from_payload, from_payloads, from_result_payloads, from_signal_payloads, to_details_payloads, to_payload, to_payloads, to_result_payloads, to_signal_payloads
Class Method Details
.generate(type, data, namespace = nil) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/temporal/metadata.rb', line 16 def generate(type, data, namespace = nil) case type when ACTIVITY_TYPE (data, namespace) when WORKFLOW_TASK_TYPE (data, namespace) when WORKFLOW_TYPE (data) else raise InternalError, 'Unsupported metadata type' end end |