Class: Zenaton::Contexts::Workflow

Inherits:
Object
  • Object
show all
Defined in:
lib/zenaton/contexts/workflow.rb

Overview

Represents the current runtime context of a Workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Zenaton::Contexts::Workflow

Returns a new execution context for a workflow.



12
13
14
# File 'lib/zenaton/contexts/workflow.rb', line 12

def initialize(**kwargs)
  @id = kwargs[:id]
end

Instance Attribute Details

#idString (readonly)

Returns The UUID identifying the current workflow.

Returns:

  • (String)

    The UUID identifying the current workflow



8
9
10
# File 'lib/zenaton/contexts/workflow.rb', line 8

def id
  @id
end