Class: Snoopit::Notifiers::Https
- Inherits:
-
Snoopit::Notifier
- Object
- Snoopit::Notifier
- Snoopit::Notifiers::Https
- Defined in:
- lib/snoopit/notifiers/https.rb
Instance Attribute Summary
Attributes inherited from Snoopit::Notifier
Instance Method Summary collapse
-
#initialize(config = nil) ⇒ Https
constructor
The name ‘https’ is used by the Snooper to identify type of notifier to create The empty constructor is used to initialize the class when loaded dynamically After loaded dynamically the method set_config is called by the base class to set the configuration.
- #notify(found, notify_params) ⇒ Object
Constructor Details
#initialize(config = nil) ⇒ Https
The name ‘https’ is used by the Snooper to identify type of notifier to create The empty constructor is used to initialize the class when loaded dynamically After loaded dynamically the method set_config is called by the base class to set the configuration
10 11 12 13 |
# File 'lib/snoopit/notifiers/https.rb', line 10 def initialize(config=nil) super config, 'https' @http = Snoopit::Notifiers::Http.new config end |
Instance Method Details
#notify(found, notify_params) ⇒ Object
15 16 17 |
# File 'lib/snoopit/notifiers/https.rb', line 15 def notify(found, notify_params) @http.notify(found, notify_params) end |