Class: LiveEvents::ModuleEvent

Inherits:
BaseEvent show all
Defined in:
lib/canvas_sync/generators/templates/services/live_events/module/module_event.rb

Direct Known Subclasses

ModuleCreatedEvent, ModuleUpdatedEvent

Instance Attribute Summary

Attributes inherited from BaseEvent

#payload

Instance Method Summary collapse

Methods inherited from BaseEvent

#local_canvas_id

Methods inherited from CanvasSync::Job

#create_job_log, #report_checker_wait_time

Instance Method Details

#perform(_event_payload) ⇒ Object

The following is provided in the live events call:

module_id,
context_id,
context_type,
name,
position,
workflow_state,



15
16
17
18
# File 'lib/canvas_sync/generators/templates/services/live_events/module/module_event.rb', line 15

def perform(_event_payload)
  super
  create_or_update_from_api(payload)
end