Sha256: f7d4e12a8c49f18599d4112b99ab81af528860592cd7d2b9b545960a1aaa1869

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module EmailDomainChanged
        # The team email domain has changed.
        # @see https://api.slack.com/events/email_domain_changed
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/email_domain_changed.json
        def self.call(client, data)
          client.team.email_domain = data.email_domain
        end
      end
    end
  end
end

Slack::RealTime::Client.events['email_domain_changed'] = Slack::RealTime::EventHandlers::EmailDomainChanged

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.6.0 lib/slack/real_time/event_handlers/email_domain_changed.rb