Module: Slack::RealTime::EventHandlers::TeamPrefChange

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

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

A team preference has been updated.


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

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