Class: PubsubNotifier::Client::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pubsub_notifier/client.rb

Direct Known Subclasses

LoggerClient, SlackClient

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base



12
13
# File 'lib/pubsub_notifier/client.rb', line 12

def initialize(options = {})
end

Class Method Details

.configObject



8
9
10
# File 'lib/pubsub_notifier/client.rb', line 8

def self.config
  @_config ||= self::Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



4
5
6
# File 'lib/pubsub_notifier/client.rb', line 4

def self.configure
  yield config
end

Instance Method Details

#notify_failure(message) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/pubsub_notifier/client.rb', line 19

def notify_failure(message)
  raise NotImplementedError, "#{self.class}##{__method__} is not implemented"
end

#notify_success(message) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/pubsub_notifier/client.rb', line 15

def notify_success(message)
  raise NotImplementedError, "#{self.class}##{__method__} is not implemented"
end