Sha256: 1a1a200ab1228009f83611ad8d981c51f3a3bb67886583386c868db956d1d35e

Contents?: true

Size: 690 Bytes

Versions: 7

Compression:

Stored size: 690 Bytes

Contents

# This file was auto-generated by lib/generators/tasks/generate.rb

module Slack
  module Endpoint
    module Presence
      #
      # Manually set user presence
      #
      # @option options [Object] :presence
      #   Either `active` or `away`
      # @see https://api.slack.com/methods/presence.set
      # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/presence.set.md
      # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/presence.set.json
      def presence_set(options={})
        throw ArgumentError.new("Required arguments :presence missing") if options[:presence].nil?
        post("presence.set", options)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack-api-1.1.6 lib/slack/endpoint/presence.rb
slack-api-1.1.4 lib/slack/endpoint/presence.rb
slack-api-1.1.3 lib/slack/endpoint/presence.rb
slack-api-1.1.2 lib/slack/endpoint/presence.rb
slack-api-1.1.1 lib/slack/endpoint/presence.rb
slack-api-1.1.0 lib/slack/endpoint/presence.rb
slack-api-1.0.0 lib/slack/endpoint/presence.rb