Module: SlackNotifiee::HttpClient
- Defined in:
- lib/slack_notifiee/http_client.rb
Class Method Summary collapse
Class Method Details
.post(uri, params) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/slack_notifiee/http_client.rb', line 7 def post(uri, params) payload = JSON.parse(params[:payload]) notification_content = payload.merge(webhook_url: uri, datetime: Time.now.iso8601(6)) SlackNotifiee.store_notification(notification_content) end |