Class: ServiceActor::Promptable::Unattended
- Inherits:
- BasicObject
- Defined in:
- lib/service_actor/promptable/unattended.rb
Overview
Sometimes a Service Actor should be able to run unattended or attended
Instance Method Summary collapse
-
#initialize(answer_with) ⇒ Unattended
constructor
A new instance of Unattended.
- #method_missing(_name, *_args) ⇒ Object
Constructor Details
#initialize(answer_with) ⇒ Unattended
Returns a new instance of Unattended.
7 8 9 |
# File 'lib/service_actor/promptable/unattended.rb', line 7 def initialize(answer_with) @answer_with = answer_with end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(_name, *_args) ⇒ Object
11 12 13 14 |
# File 'lib/service_actor/promptable/unattended.rb', line 11 def method_missing(_name, *_args) ::Kernel.puts "Prompt is NoOp. Running unattended!" @answer_with end |