Sha256: e39258a02d1abc2ac9b99d4ab17d0ccb3d71495abba185135380e2478ffaa4d3

Contents?: true

Size: 660 Bytes

Versions: 11

Compression:

Stored size: 660 Bytes

Contents

require_relative "slack/error"
require_relative "slack/configuration"
require_relative "slack/api"
require_relative "slack/client"
require_relative "slack/version"

module Slack
  extend Configuration

  # Alias for Slack::Client.new
  #
  # @return [Slack::Client]
  def self.client(options={})
    Slack::Client.new(options)
  end

  # Delegate to Slack::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end

  # Delegate to Slack::Client
  def self.respond_to?(method, include_all=false)
    return client.respond_to?(method, include_all) || super
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
slack-api-1.6.1 lib/slack.rb
slack-api-1.6.0 lib/slack.rb
slack-api-1.5.0 lib/slack.rb
slack-api-1.4.0 lib/slack.rb
slack-api-1.3.0 lib/slack.rb
slack-api-1.2.4 lib/slack.rb
slack-api-1.2.3 lib/slack.rb
slack-api-1.2.2 lib/slack.rb
slack-web-api-0.0.1 lib/slack.rb
slack-api-1.2.1 lib/slack.rb
slack-api-1.2.0 lib/slack.rb