class BotPlatform::State::UserState
Public Class Methods
new(storage)
click to toggle source
Calls superclass method
BotPlatform::State::BotState::new
# File lib/bot_platform/state/user_state.rb, line 6 def initialize(storage) super(storage, "user_state") end
Public Instance Methods
get_storage_key(turn_context)
click to toggle source
# File lib/bot_platform/state/user_state.rb, line 10 def get_storage_key(turn_context) channel_id = turn_context.activity.channel_id user_id = turn_context.from.user_id "#{channel_id}/users/#{user_id}" end