Module: BotPlatform::Storage::Storageable
- Included in:
- MemoryStorage
- Defined in:
- lib/bot_platform/storage/storageable.rb
Instance Attribute Summary collapse
-
#_user_state ⇒ Object
Returns the value of attribute _user_state.
-
#coversation_state ⇒ Object
Returns the value of attribute coversation_state.
-
#data ⇒ Object
Returns the value of attribute data.
-
#dialog_state ⇒ Object
Returns the value of attribute dialog_state.
Instance Method Summary collapse
- #del(key) ⇒ Object
- #get(key) ⇒ Object
- #read(keys) ⇒ Object
- #set(key, value, exipred = false) ⇒ Object
- #user_state ⇒ Object
- #user_state=(state) ⇒ Object
- #write(changes) ⇒ Object
Instance Attribute Details
#_user_state ⇒ Object
Returns the value of attribute _user_state.
6 7 8 |
# File 'lib/bot_platform/storage/storageable.rb', line 6 def _user_state @_user_state end |
#coversation_state ⇒ Object
Returns the value of attribute coversation_state.
6 7 8 |
# File 'lib/bot_platform/storage/storageable.rb', line 6 def coversation_state @coversation_state end |
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/bot_platform/storage/storageable.rb', line 6 def data @data end |
#dialog_state ⇒ Object
Returns the value of attribute dialog_state.
6 7 8 |
# File 'lib/bot_platform/storage/storageable.rb', line 6 def dialog_state @dialog_state end |
Instance Method Details
#del(key) ⇒ Object
14 15 |
# File 'lib/bot_platform/storage/storageable.rb', line 14 def del(key) end |
#get(key) ⇒ Object
11 12 |
# File 'lib/bot_platform/storage/storageable.rb', line 11 def get(key) end |
#read(keys) ⇒ Object
17 18 |
# File 'lib/bot_platform/storage/storageable.rb', line 17 def read(keys) end |
#set(key, value, exipred = false) ⇒ Object
8 9 |
# File 'lib/bot_platform/storage/storageable.rb', line 8 def set(key, value, exipred=false) end |
#user_state ⇒ Object
23 24 25 |
# File 'lib/bot_platform/storage/storageable.rb', line 23 def user_state get(:_user_state) end |
#user_state=(state) ⇒ Object
27 28 29 |
# File 'lib/bot_platform/storage/storageable.rb', line 27 def user_state=(state) set(:_user_state, state) end |
#write(changes) ⇒ Object
20 21 |
# File 'lib/bot_platform/storage/storageable.rb', line 20 def write(changes) end |