module Boty module Slack class RTM include Slack::URL url "https://#{ENV['SLACK_COMPANY']}.slack.com/api/" def start(parameters = {}) defaults = { simple_latest: true, no_unreads: true } url = parameterize defaults.merge(parameters), path: "rtm.start" URL.get url end end end end