module Slatan::Mouth::Users

Public Class Methods

get_presence(user, options={}) click to toggle source

@see api.slack.com/methods/users.getPresence

# File lib/slatan/mouth/users.rb, line 20
def get_presence(user, options={})
  send('getPresence', {
    user: user
  }.merge(options))
end
info(user, options={}) click to toggle source

@see api.slack.com/methods/users.info

# File lib/slatan/mouth/users.rb, line 8
def info(user, options={})
  send('info', {
    user: user
  }.merge(options))
end
list(options={}) click to toggle source

@see api.slack.com/methods/users.list

# File lib/slatan/mouth/users.rb, line 15
def list(options={})
  send('list', options)
end
set_presence(presence, options={}) click to toggle source

@see api.slack.com/methods/users.setPresence

# File lib/slatan/mouth/users.rb, line 27
def set_presence(presence, options={})
  send('setPresence', {
    presence: presence
  }.merge(options))
end

Private Class Methods

send(method, msg) click to toggle source
# File lib/slatan/mouth/users.rb, line 34
def send(method, msg)
  Mouth.send(@category, method, msg)
end