Class: Bizflow::SemanticModel::Action
- Inherits:
-
Object
- Object
- Bizflow::SemanticModel::Action
- Defined in:
- lib/bizflow/semantic_model/action.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#question ⇒ Object
Returns the value of attribute question.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #handler ⇒ Object
-
#initialize(type, name, description = nil) ⇒ Action
constructor
A new instance of Action.
- #next_actions ⇒ Object
- #tasks ⇒ Object
Constructor Details
#initialize(type, name, description = nil) ⇒ Action
Returns a new instance of Action.
8 9 10 11 12 |
# File 'lib/bizflow/semantic_model/action.rb', line 8 def initialize(type, name, description = nil) @type = type @name = name @description = nil end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/bizflow/semantic_model/action.rb', line 6 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/bizflow/semantic_model/action.rb', line 6 def name @name end |
#question ⇒ Object
Returns the value of attribute question.
6 7 8 |
# File 'lib/bizflow/semantic_model/action.rb', line 6 def question @question end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/bizflow/semantic_model/action.rb', line 6 def type @type end |
Instance Method Details
#handler ⇒ Object
22 23 24 |
# File 'lib/bizflow/semantic_model/action.rb', line 22 def handler nil end |
#next_actions ⇒ Object
14 15 16 |
# File 'lib/bizflow/semantic_model/action.rb', line 14 def next_actions raise NotImplementedError end |
#tasks ⇒ Object
18 19 20 |
# File 'lib/bizflow/semantic_model/action.rb', line 18 def tasks [] end |