Class: Boty::Slack::RTM

Inherits:
Object
  • Object
show all
Includes:
URL
Defined in:
lib/boty/slack/rtm.rb

Instance Method Summary collapse

Methods included from URL

get, included

Instance Method Details

#start(parameters = {}) ⇒ Object



7
8
9
10
11
# File 'lib/boty/slack/rtm.rb', line 7

def start(parameters = {})
  defaults = { simple_latest: true, no_unreads: true }
  url = parameterize defaults.merge(parameters), path: "rtm.start"
  URL.get url
end