Sha256: 82255f2b3f04138f090fddd8a7dfd4fed82d38b9252bd85c32a979007b48da68

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 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 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.5 lib/laziness/client.rb