Sha256: 70e205f43d3a5d89293efb3c9b3c3795a1334e4ec1858bb3585489c8a03b2f01
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
require 'rest-client' class PostSlackMessage def self.to(channel, msg, as_user, icon_emoji, api_url) RestClient.post( api_url, payload: { username: as_user, channel: channel, text: msg, icon_emoji: icon_emoji }.to_json ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sm-0.2.0 | lib/sm/post_slack_message.rb |