以下のように、Slack Notifierを用いてRailsアプリから通知を行っています。
https://github.com/stevenosloan/slack-notifier
notifier = Slack::Notifier.new ENV['SLACK_TEST_WEBHOOK_URL'], channel: "#test", username: "ローカルテストBot" notifier.post text: "feeling spooky", icon_emoji: ":ghost:"
SlackNotifierのpingメソッドは機能するのですが、postメソッドを利用すると、コンソールにundefined method post
とエラーが出てきます。
なぜでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/02 00:57