Class: Snoopit::Notifiers::Https

Inherits:
Snoopit::Notifier show all
Defined in:
lib/snoopit/notifiers/https.rb

Instance Attribute Summary

Attributes inherited from Snoopit::Notifier

#configuration, #klass, #name

Instance Method Summary collapse

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