class Slack::Client
Attributes
access_token[R]
Public Class Methods
new(access_token=nil)
click to toggle source
# File lib/laziness/client.rb, line 5 def initialize(access_token=nil) @access_token = access_token end
Public Instance Methods
auth()
click to toggle source
# File lib/laziness/client.rb, line 9 def auth @auth ||= Slack::API::Auth.new(access_token) end
channels()
click to toggle source
# File lib/laziness/client.rb, line 13 def channels @channels ||= Slack::API::Channels.new(access_token) end
chat()
click to toggle source
# File lib/laziness/client.rb, line 17 def chat @chat ||= Slack::API::Chat.new(access_token) end
conversations()
click to toggle source
# File lib/laziness/client.rb, line 21 def conversations @conversations ||= Slack::API::Conversations.new(access_token) end
groups()
click to toggle source
# File lib/laziness/client.rb, line 29 def groups @groups ||= Slack::API::Groups.new(access_token) end
im()
click to toggle source
# File lib/laziness/client.rb, line 25 def im @im ||= Slack::API::IM.new(access_token) end
oauth()
click to toggle source
# File lib/laziness/client.rb, line 33 def oauth @oauth ||= Slack::API::OAuth.new end
rtm()
click to toggle source
# File lib/laziness/client.rb, line 37 def rtm @rtm ||= Slack::API::RTM.new(access_token) end
users()
click to toggle source
# File lib/laziness/client.rb, line 41 def users @users ||= Slack::API::Users.new(access_token) end