Sha256: b23e71fe4067b4daaec4ec7b970f0b1dc82a32cadb67739b881b5a8798921719
Contents?: true
Size: 784 Bytes
Versions: 7
Compression:
Stored size: 784 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/aki017/slack-api-docs/blob/master/methods/presence.set.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/presence.set.json def presence_set(options={}) throw ArgumentError.new("Required arguments :presence missing") if options[:presence].nil? options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("presence.set", options) end end end end
Version data entries
7 entries across 7 versions & 2 rubygems