0.0
No commit activity in last 3 years
No release in over 3 years
Gem send messages to slack web hooks depend upon the type of the message.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.7
 Project Readme

Slack Web Hook Gem Version

Note: There are plans to add the slack message formatting directly to the gem. For now, you send the slack formatted slack message as normal type.

Slackwebhook send messages to slack hooks depend upon the message type.

Installation

gem install slackwebhook

Require

require 'slackwebhook'

Usage

  • First Require the gem: require 'Slackwbhook'
  • Creating new instance require webhook url. hook = Slackwebhook.new('webhook_url')
  • Select Type. Leave it if not sure. Normal by default hook.type = 'info'
  • Send message. response = hook.send('message')
  • See response. puts hook.output
require 'slackwebhook'

hook = Slackwebhook.new('hook_url')
hook.type = "alert"
hook.send = "example: Change the configuration of servers"
response = hook.output #return net/http object back

Message Types

  • Info
  • Warning
  • Alert
  • Normal default

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details