Class: Feedbook::Notifiers::NullNotifier

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/feedbook/notifiers/null_notifier.rb

Instance Method Summary collapse

Instance Method Details

#load_configuration(_) ⇒ NilClass

Load configuration for NullNotifier

Parameters:

  • configuration

    {} [Hash] Configuration hash

Returns:

  • (NilClass)

    nil



20
21
22
# File 'lib/feedbook/notifiers/null_notifier.rb', line 20

def load_configuration(_)
  puts 'Configuration loaded for NullNotifier'
end

#notify(message) ⇒ NilClass

Sends notification to Nil

Parameters:

  • message (String)

    message to be displayed in console

Returns:

  • (NilClass)

    nil



12
13
14
# File 'lib/feedbook/notifiers/null_notifier.rb', line 12

def notify(message)
  puts "New message has been notified: #{message}"
end