Sha256: bd5c5ac9fb589fc38e637c9d8b62f739483dbf0c942f4c0f957bd82e13f1a9b4

Contents?: true

Size: 341 Bytes

Versions: 13

Compression:

Stored size: 341 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
boty-0.1.0 lib/boty/slack/rtm.rb
boty-0.0.17.1 lib/boty/slack/rtm.rb
boty-0.0.17 lib/boty/slack/rtm.rb
boty-0.0.16 lib/boty/slack/rtm.rb
boty-0.0.15 lib/boty/slack/rtm.rb
boty-0.0.14 lib/boty/slack/rtm.rb
boty-0.0.13 lib/boty/slack/rtm.rb
boty-0.0.12 lib/boty/slack/rtm.rb
boty-0.0.11 lib/boty/slack/rtm.rb
boty-0.0.10 lib/boty/slack/rtm.rb
boty-0.0.9 lib/boty/slack/rtm.rb
boty-0.0.7 lib/boty/slack/rtm.rb
boty-0.0.6 lib/boty/slack/rtm.rb