class Bizflow::InputActionInterpreter
Attributes
action[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 9 def initialize(name) @action = Bizflow::SemanticModel::InputAction.new(name) end
Public Instance Methods
description(description)
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 13 def description(description) action.description = description end
handler(name, options = {})
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 17 def handler(name, options = {}) raise "handler for action already defined" if action.handler action.handler = Bizflow::SemanticModel::Handler.new(name, options) end
next_actions(actions_hash)
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 22 def next_actions(actions_hash) raise "next actions already defined" if !action.next_actions.empty? action.next_actions = actions_hash end
question(question)
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 27 def question(question) action.question = question end
roles(roles_array)
click to toggle source
# File lib/bizflow/interpreters/input_action_interpreter.rb, line 31 def roles(roles_array) end