module Boty module Slack class Users include Slack::URL url "https://slack.com/api/users" def info(user_id, parameters = {}) defaults = { user: user_id } url = parameterize defaults.merge(parameters), path: ".info" info = URL.get url Slack::User.new info["user"] end end end end