Class: Bizflow::SemanticModel::TaskAction
- Defined in:
- lib/bizflow/semantic_model/task_action.rb
Instance Attribute Summary collapse
-
#next_action ⇒ Object
Returns the value of attribute next_action.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Attributes inherited from Action
#description, #name, #question, #type
Instance Method Summary collapse
- #add_task(task) ⇒ Object
-
#initialize(name) ⇒ TaskAction
constructor
A new instance of TaskAction.
- #next_actions ⇒ Object
Methods inherited from Action
Constructor Details
#initialize(name) ⇒ TaskAction
Returns a new instance of TaskAction.
10 11 12 13 |
# File 'lib/bizflow/semantic_model/task_action.rb', line 10 def initialize(name) super("task", name) @tasks = [] end |
Instance Attribute Details
#next_action ⇒ Object
Returns the value of attribute next_action.
8 9 10 |
# File 'lib/bizflow/semantic_model/task_action.rb', line 8 def next_action @next_action end |
#tasks ⇒ Object
Returns the value of attribute tasks.
8 9 10 |
# File 'lib/bizflow/semantic_model/task_action.rb', line 8 def tasks @tasks end |
Instance Method Details
#add_task(task) ⇒ Object
15 16 17 |
# File 'lib/bizflow/semantic_model/task_action.rb', line 15 def add_task(task) tasks << task end |
#next_actions ⇒ Object
19 20 21 |
# File 'lib/bizflow/semantic_model/task_action.rb', line 19 def next_actions { only_one: next_action } end |