class Slack::API

@private

Public Class Methods

new(options={}) click to toggle source

Creates a new API

# File lib/slack/api.rb, line 14
def initialize(options={})
  options = Slack.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Public Instance Methods

realtime() click to toggle source
# File lib/slack/api.rb, line 25
def realtime
  RealTime::Client.new(post("rtm.start"))
end