Class: Socrates::SampleStates::AskForName
- Inherits:
-
Object
- Object
- Socrates::SampleStates::AskForName
- 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, #next_state_action, #next_state_id, #repeat_action, #respond, #send_message, #transition_to
Instance Method Details
#ask ⇒ Object
86 87 88 |
# File 'lib/socrates/sample_states.rb', line 86 def ask respond message: "First things first, what's your name?" end |
#listen(message) ⇒ Object
90 91 92 |
# File 'lib/socrates/sample_states.rb', line 90 def listen() transition_to :ask_for_birth_date, data: { name: } end |