module Slacking
Constants
- VERSION
Public Class Methods
run()
click to toggle source
# File lib/slacking.rb, line 15 def run config = get_slack_config @token = config[:token] @organization = config[:organization] listen end
Protected Class Methods
client()
click to toggle source
# File lib/slacking.rb, line 24 def client @client ||= Slacking::HttpClient.new(@token, @organization) end
Private Class Methods
listen()
click to toggle source
# File lib/slacking.rb, line 30 def listen profile = initialize_profile client.post_to_slack(profile) if profile return if ENV['TEST'] listen end