Module: BotPlatform::Storage::Storageable

Included in:
MemoryStorage
Defined in:
lib/bot_platform/storage/storageable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_user_stateObject

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_stateObject

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

#dataObject

Returns the value of attribute data.



6
7
8
# File 'lib/bot_platform/storage/storageable.rb', line 6

def data
  @data
end

#dialog_stateObject

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_stateObject



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