class Object
Public Instance Methods
send_message(params = {})
click to toggle source
# File lib/mina_slack_notify/tasks.rb, line 112 def send_message(params = {}) slack_url = "https://#{fetch(:slack_team_domain)}.slack.com/services/hooks/slackbot?token=#{fetch(:slack_api_token)}&channel=%23#{params[:channel]}" HTTParty.post(slack_url, {body: params[:text]}) end