Class: GuardWebHookNotifier::Notifier
- Inherits:
-
Guard::Notifier::Base
- Object
- Guard::Notifier::Base
- GuardWebHookNotifier::Notifier
- Defined in:
- lib/guard-webhook-notifier/notifier.rb
Constant Summary collapse
- DEFAULTS =
{ user_agent: "GuardWebHookNotifier/#{VERSION}", url: "http://10.0.2.2:4001/", timeout: 1 }
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Notifier
constructor
A new instance of Notifier.
- #notify(message, opts = {}) ⇒ Object
Constructor Details
Instance Method Details
#notify(message, opts = {}) ⇒ Object
18 19 20 21 |
# File 'lib/guard-webhook-notifier/notifier.rb', line 18 def notify(, opts = {}) super send(, opts) rescue Faraday::Error end |