Class: EventUpdaters::BaseEventUpdater

Inherits:
Object
  • Object
show all
Defined in:
app/notifications/event_updaters/base_event_updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_eventObject (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_eventObject



9
10
11
12
# File 'app/notifications/event_updaters/base_event_updater.rb', line 9

def updated_event
  update
  reference_event.reload
end