Sha256: 1e340c912bc8366c2be85bce842f8ed203aae49796ee502b0f7d2c7c299c8440

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module ManualPresenceChange
        # You manually updated your presence.
        # @see https://api.slack.com/events/manual_presence_change
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/manual_presence_change.json
        def self.call(client, data)
          client.self.presence = data.presence
        end
      end
    end
  end
end

Slack::RealTime::Client.events['manual_presence_change'] = Slack::RealTime::EventHandlers::ManualPresenceChange

Version data entries

1 entries across 1 versions & 1 rubygems

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