Module: Slack::Endpoint::Users
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/users.rb
Instance Method Summary collapse
-
#users_getPresence(options = {}) ⇒ Object
This method lets you find out information about a user’s presence.
-
#users_info(options = {}) ⇒ Object
This method returns information about a team member.
-
#users_list(options = {}) ⇒ Object
This method returns a list of all users in the team.
-
#users_setActive(options = {}) ⇒ Object
This method lets the slack messaging server know that the authenticated user is currently active.
-
#users_setPresence(options = {}) ⇒ Object
This method lets you set the calling user’s manual presence.
Instance Method Details
#users_getPresence(options = {}) ⇒ Object
This method lets you find out information about a user’s presence. Consult the presence documentation for more details.
15 16 17 18 19 |
# File 'lib/slack/endpoint/users.rb', line 15 def users_getPresence(={}) throw ArgumentError.new("Required arguments :user missing") if [:user].nil? [:attachments] = [:attachments].to_json if Hash === [:attachments] post("users.getPresence", ) end |
#users_info(options = {}) ⇒ Object
This method returns information about a team member.
29 30 31 32 33 |
# File 'lib/slack/endpoint/users.rb', line 29 def users_info(={}) throw ArgumentError.new("Required arguments :user missing") if [:user].nil? [:attachments] = [:attachments].to_json if Hash === [:attachments] post("users.info", ) end |
#users_list(options = {}) ⇒ Object
This method returns a list of all users in the team. This includes deleted/deactivated users.
43 44 45 46 |
# File 'lib/slack/endpoint/users.rb', line 43 def users_list(={}) [:attachments] = [:attachments].to_json if Hash === [:attachments] post("users.list", ) end |
#users_setActive(options = {}) ⇒ Object
This method lets the slack messaging server know that the authenticated user is currently active. Consult the presence documentation for more details.
56 57 58 59 |
# File 'lib/slack/endpoint/users.rb', line 56 def users_setActive(={}) [:attachments] = [:attachments].to_json if Hash === [:attachments] post("users.setActive", ) end |
#users_setPresence(options = {}) ⇒ Object
This method lets you set the calling user’s manual presence. Consult the presence documentation for more details.
70 71 72 73 74 |
# File 'lib/slack/endpoint/users.rb', line 70 def users_setPresence(={}) throw ArgumentError.new("Required arguments :presence missing") if [:presence].nil? [:attachments] = [:attachments].to_json if Hash === [:attachments] post("users.setPresence", ) end |