Class: EventRouter::DeliveryAdapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/event_router/delivery_adapters/base.rb

Direct Known Subclasses

Sidekiq, Sync

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject

Returns the value of attribute options.



9
10
11
# File 'lib/event_router/delivery_adapters/base.rb', line 9

def options
  @options
end

Class Method Details

.deliver(_event) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/event_router/delivery_adapters/base.rb', line 21

def deliver(_event)
  raise NotImplementedError, "deliver method is not implemented for #{name}"
end

.deliver_async(_event) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/event_router/delivery_adapters/base.rb', line 25

def deliver_async(_event)
  raise NotImplementedError, "deliver_async method is not implemented for #{name}"
end

.validate_options!(_options) ⇒ Object



17
18
19
# File 'lib/event_router/delivery_adapters/base.rb', line 17

def validate_options!(_options)
  true
end