Class: EventUpdaters::BaseEventUpdater
- Inherits:
-
Object
- Object
- EventUpdaters::BaseEventUpdater
- Defined in:
- app/notifications/event_updaters/base_event_updater.rb
Direct Known Subclasses
EmployeesWithoutTimesheetsEventUpdater, InvalidEmployeeEventUpdater, InvalidInvoiceEventUpdater, NewLoadTenderEventUpdater, PayrollPeriodWithoutTransactionEventUpdater, UncompletedCompanySetupEventUpdater, UnreviewedPayrollTransactionEventUpdater
Instance Attribute Summary collapse
-
#reference_event ⇒ Object
readonly
Returns the value of attribute reference_event.
Instance Method Summary collapse
-
#initialize(reference_event:) ⇒ BaseEventUpdater
constructor
A new instance of BaseEventUpdater.
- #updated_event ⇒ Object
Constructor Details
#initialize(reference_event:) ⇒ BaseEventUpdater
Returns a new instance of BaseEventUpdater.
5 6 7 |
# File 'app/notifications/event_updaters/base_event_updater.rb', line 5 def initialize(reference_event:) @reference_event = reference_event end |
Instance Attribute Details
#reference_event ⇒ Object (readonly)
Returns the value of attribute reference_event.
3 4 5 |
# File 'app/notifications/event_updaters/base_event_updater.rb', line 3 def reference_event @reference_event end |
Instance Method Details
#updated_event ⇒ Object
9 10 11 12 |
# File 'app/notifications/event_updaters/base_event_updater.rb', line 9 def updated_event update reference_event.reload end |