Module: Cadence::Metadata
- Defined in:
- lib/cadence/metadata.rb,
lib/cadence/metadata/base.rb,
lib/cadence/metadata/activity.rb,
lib/cadence/metadata/decision.rb,
lib/cadence/metadata/workflow.rb
Defined Under Namespace
Classes: Activity, Base, Decision, Workflow
Constant Summary collapse
- ACTIVITY_TYPE =
:activity
- DECISION_TYPE =
:decision
- WORKFLOW_TYPE =
:workflow
Class Method Summary collapse
Class Method Details
.generate(type, data, domain = nil) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cadence/metadata.rb', line 13 def generate(type, data, domain = nil) case type when ACTIVITY_TYPE (data, domain) when DECISION_TYPE (data, domain) when WORKFLOW_TYPE (data) else raise InternalError, 'Unsupported metadata type' end end |