Class: LiveEvents::SyllabusEvent

Inherits:
CanvasSync::LiveEvents::BaseHandler show all
Defined in:
lib/canvas_sync/generators/templates/services/live_events/syllabus_event.rb

Direct Known Subclasses

SyllabusUpdatedEvent

Instance Attribute Summary

Attributes inherited from CanvasSync::LiveEvents::BaseHandler

#metadata, #payload, #raw_payload

Attributes inherited from CanvasSync::Job

#job_log

Instance Method Summary collapse

Methods inherited from CanvasSync::LiveEvents::BaseHandler

#perform

Methods inherited from CanvasSync::Job

#create_job_log, #report_checker_wait_time, #update_or_create_model

Instance Method Details

#processObject



6
7
8
9
10
11
# File 'lib/canvas_sync/generators/templates/services/live_events/syllabus_event.rb', line 6

def process
  # syllabus = Syllabus.where(course_id: attrs[:course_id]).first_or_initialize
  # syllabus.body = attrs[:syllabus_body] # Syllabus Body can get truncated by live events
  # syllabus.save!
  raise "process must be implemented in your subclass"
end