Class: LiveEvents::ModuleItemEvent

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

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_item_id,
module_id,
context_id,
context_type,
position,
workflow_state,



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

def perform(_event_payload)
  super
  create_or_update_from_api(payload)
end