Module: Slack

Extended by:
Configuration
Defined in:
lib/slack.rb,
lib/slack/api.rb,
lib/slack/error.rb,
lib/slack/client.rb,
lib/slack/request.rb,
lib/slack/version.rb,
lib/slack/connection.rb,
lib/slack/configuration.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: API, BadRequest, Client, Error, InternalServerError, InvalidSignature, NotFound, ServiceUnavailable

Constant Summary collapse

VERSION =
"0.0.4"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_TOKEN, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Slack::Client

Alias for Slack::Client.new

Returns:



13
14
15
# File 'lib/slack.rb', line 13

def self.client(options={})
  Slack::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Slack::Client



18
19
20
21
# File 'lib/slack.rb', line 18

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Delegate to Slack::Client

Returns:

  • (Boolean)


24
25
26
# File 'lib/slack.rb', line 24

def self.respond_to?(method)
  return client.respond_to?(method) || super
end