Class: ActiveMessenger::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/active_messenger/adapters/base.rb

Direct Known Subclasses

Hipchat, Slack

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/active_messenger/adapters/base.rb', line 13

def initialize
  raise NotImplementedError.new("Adapter does not implement 'initialize'")
end

Class Method Details

.load_config!Object



8
9
10
# File 'lib/active_messenger/adapters/base.rb', line 8

def load_config!
  self.config = ActiveMessenger::Core::ConfigParsable.parse_config!(self.config_path)
end

Instance Method Details

#send!Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/active_messenger/adapters/base.rb', line 17

def send!
  raise NotImplementedError.new("Adapter does not implement 'send!'")
end