Sha256: a3f1457bf38525e28a506ac5419d5882b53af56caf86ef44fa04d026927c1e6f

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

module Slack
  class Client
    attr_reader :access_token

    def initialize(access_token=nil)
      @access_token = access_token
    end

    def auth
      @auth ||= Slack::API::Auth.new(access_token)
    end

    def channels
      @channels ||= Slack::API::Channels.new(access_token)
    end

    def groups
      @groups ||= Slack::API::Groups.new(access_token)
    end

    def oauth
      @oauth ||= Slack::API::OAuth.new
    end

    def rtm
      @rtm ||= Slack::API::RTM.new(access_token)
    end

    def users
      @users ||= Slack::API::Users.new(access_token)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
laziness-0.1.6 lib/laziness/client.rb