class SimpleSlack::Client
Public Class Methods
new(token = ENV['SLACK_API_TOKEN'])
click to toggle source
# File lib/simple_slack/client.rb, line 10 def initialize(token = ENV['SLACK_API_TOKEN']) @token = token Slack.configure { |config| config.token = @token } @slack = Slack.client end
Public Instance Methods
bot()
click to toggle source
# File lib/simple_slack/client.rb, line 24 def bot @botter ||= SimpleSlack::Botter.new(@token, self) end
delete()
click to toggle source
# File lib/simple_slack/client.rb, line 28 def delete @delete ||= SimpleSlack::Deleter.new(@slack, self) end
get()
click to toggle source
# File lib/simple_slack/client.rb, line 16 def get @getter ||= SimpleSlack::Getter.new(@slack) end
post()
click to toggle source
# File lib/simple_slack/client.rb, line 20 def post @poster ||= SimpleSlack::Poster.new(@slack, self) end
toggl(toggl_api_token = ENV['TOGGL_API_TOKEN'])
click to toggle source
# File lib/simple_slack/client.rb, line 32 def toggl(toggl_api_token = ENV['TOGGL_API_TOKEN']) @toggl ||= SimpleSlack::Toggl.new(toggl_api_token, self) end