class Slack::API::Users
Public Instance Methods
all(page: nil)
click to toggle source
# File lib/laziness/api/users.rb, line 4 def all(page: nil) responses = with_paging(page) do |pager| request :get, 'users.list', **pager.to_h end Slack::User.parse_all responses, 'members' end
find(id)
click to toggle source
# File lib/laziness/api/users.rb, line 12 def find(id) response = request :get, 'users.info', user: id Slack::User.parse response, 'user' end
set_active()
click to toggle source
# File lib/laziness/api/users.rb, line 17 def set_active with_nil_response { request :post, 'users.setActive' } end