Class: EventDispatchers::BaseEventDispatcher

Inherits:
Object
  • Object
show all
Defined in:
app/notifications/event_dispatchers/base_event_dispatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(company_id:) ⇒ BaseEventDispatcher

Returns a new instance of BaseEventDispatcher.



7
8
9
# File 'app/notifications/event_dispatchers/base_event_dispatcher.rb', line 7

def initialize(company_id:)
  @company_id = company_id
end

Instance Attribute Details

#company_idObject (readonly)

Returns the value of attribute company_id.



5
6
7
# File 'app/notifications/event_dispatchers/base_event_dispatcher.rb', line 5

def company_id
  @company_id
end

Instance Method Details

#dispatchObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'app/notifications/event_dispatchers/base_event_dispatcher.rb', line 11

def dispatch
  raise NotImplementedError
end