Class: BotPlatform::Dialogs::DialogInstance
- Inherits:
-
Object
- Object
- BotPlatform::Dialogs::DialogInstance
- Defined in:
- lib/bot_platform/dialogs/dialog_instance.rb
Instance Attribute Summary collapse
-
#dialog_id ⇒ Object
readonly
Returns the value of attribute dialog_id.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(dialog_id) ⇒ DialogInstance
constructor
A new instance of DialogInstance.
Constructor Details
#initialize(dialog_id) ⇒ DialogInstance
Returns a new instance of DialogInstance.
9 10 11 12 |
# File 'lib/bot_platform/dialogs/dialog_instance.rb', line 9 def initialize(dialog_id) @dialog_id = dialog_id @state = {} end |
Instance Attribute Details
#dialog_id ⇒ Object (readonly)
Returns the value of attribute dialog_id.
6 7 8 |
# File 'lib/bot_platform/dialogs/dialog_instance.rb', line 6 def dialog_id @dialog_id end |
#state ⇒ Object
Returns the value of attribute state.
7 8 9 |
# File 'lib/bot_platform/dialogs/dialog_instance.rb', line 7 def state @state end |