Class: Socrates::SampleStates::Help
- Inherits:
-
Object
- Object
- Socrates::SampleStates::Help
- Includes:
- Core::State
- Defined in:
- lib/socrates/sample_states.rb
Instance Attribute Summary
Attributes included from Core::State
#adapter, #data, #session, #user
Instance Method Summary collapse
Methods included from Core::State
#end_conversation, #initialize, #listen, #next_state_action, #next_state_id, #repeat_action, #respond, #send_message, #transition_to
Instance Method Details
#ask ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/socrates/sample_states.rb', line 47 def ask respond message: <<~MSG Thanks for asking! I can do these things for you... • `age` - Calculate your age from your birth date. • `dms` - Sends a direct messages to two other users. • `error` - Start a short error path that raises an error. • `help` - Tell you what I can do for you. So, what shall it be? MSG transition_to :get_started, action: :listen end |