Class: Bizflow::SemanticModel::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/bizflow/semantic_model/action.rb

Direct Known Subclasses

InputAction, TaskAction

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/bizflow/semantic_model/action.rb', line 6

def description
  @description
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/bizflow/semantic_model/action.rb', line 6

def name
  @name
end

#questionObject

Returns the value of attribute question.



6
7
8
# File 'lib/bizflow/semantic_model/action.rb', line 6

def question
  @question
end

#typeObject

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

#handlerObject



22
23
24
# File 'lib/bizflow/semantic_model/action.rb', line 22

def handler
  nil
end

#next_actionsObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/bizflow/semantic_model/action.rb', line 14

def next_actions
  raise NotImplementedError
end

#tasksObject



18
19
20
# File 'lib/bizflow/semantic_model/action.rb', line 18

def tasks
  []
end