Class: Metafrazo::Slack
- Inherits:
-
Object
- Object
- Metafrazo::Slack
- Defined in:
- lib/metafrazo/slack.rb
Class Method Summary collapse
Class Method Details
.send_message(message, url) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/metafrazo/slack.rb', line 6 def self.(, url) payload = { channel: '#metafrazo', username: 'Metafrazo', text: , icon_url: 'https://avatars2.githubusercontent.com/u/19434500?v=3&s=400' } RestClient.post(url, payload.to_json, content_type: :json) end |