lib/bearychat-notifier.rb in bearychat-notifier-0.0.4 vs lib/bearychat-notifier.rb in bearychat-notifier-0.0.5
- old
+ new
@@ -12,10 +12,10 @@
def initialize(webhook_url, options = {})
@webhook_url = webhook_url
@payload = options
end
- def ping(text, options)
+ def ping(text, options = {})
payload.merge!(options)
payload.merge!(text: text)
params = { payload: payload.to_json }
HttpClient.post(webhook_url, params)
end