Sha256: c891876e13cd9aa63759d915d3eecc480418fa69e8012b6150ceb247733dc40f

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

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

Slack::RealTime::Client.events['team_plan_change'] = Slack::RealTime::EventHandlers::TeamPlanChange

Version data entries

1 entries across 1 versions & 1 rubygems

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