Class: EventDispatchers::BaseEventDispatcher
- Inherits:
-
Object
- Object
- EventDispatchers::BaseEventDispatcher
- Defined in:
- app/notifications/event_dispatchers/base_event_dispatcher.rb
Direct Known Subclasses
EmployeesWithoutTimesheetsEventDispatcher, InvalidEmployeeEventDispatcher, InvalidInvoiceEventDispatcher, InvoiceSentViaEdiEventDispatcher, NewLoadTenderEventDispatcher, PayrollPeriodWithoutTransactionEventDispatcher, UnreviewedPayrollTransactionEventDispatcher
Instance Attribute Summary collapse
-
#company_id ⇒ Object
readonly
Returns the value of attribute company_id.
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(company_id:) ⇒ BaseEventDispatcher
constructor
A new instance of BaseEventDispatcher.
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_id ⇒ Object (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
#dispatch ⇒ Object
11 12 13 |
# File 'app/notifications/event_dispatchers/base_event_dispatcher.rb', line 11 def dispatch raise NotImplementedError end |