Class: SlackChatter::Api::Users
- Inherits:
-
Base
- Object
- Base
- SlackChatter::Api::Users
show all
- Defined in:
- lib/slack_chatter/api/users.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#bool_as_i, #call_method, #channel_id_or_name, #initialize
Instance Method Details
#get_presence(user_id) ⇒ Object
6
7
8
|
# File 'lib/slack_chatter/api/users.rb', line 6
def get_presence user_id
call_method("users", "getPresence", {"user" => user_id})
end
|
#info(user_id) ⇒ Object
10
11
12
|
# File 'lib/slack_chatter/api/users.rb', line 10
def info user_id
call_method("users", "info", {"user" => user_id})
end
|
#list ⇒ Object
14
15
16
|
# File 'lib/slack_chatter/api/users.rb', line 14
def list
call_method("users", "list", {})
end
|
#set_active ⇒ Object
18
19
20
|
# File 'lib/slack_chatter/api/users.rb', line 18
def set_active
call_method("users", "setActive", {})
end
|
#set_presence(presence) ⇒ Object
22
23
24
|
# File 'lib/slack_chatter/api/users.rb', line 22
def set_presence presence
call_method("users", "setPresence", {"presence" => presence})
end
|