Module: Slack::RealTime::EventHandlers::PrefChange

Defined in:
lib/slack/real_time/event_handlers/pref_change.rb

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

You have updated your preferences.


8
9
10
11
# File 'lib/slack/real_time/event_handlers/pref_change.rb', line 8

def self.call(client, data)
  client.self.prefs ||= {}
  client.self.prefs[data.name] = data.value
end