Class: LiveEvents::SyllabusEvent
- Inherits:
-
CanvasSync::LiveEvents::BaseHandler
- Object
- ActiveJob::Base
- CanvasSync::Job
- CanvasSync::LiveEvents::BaseHandler
- LiveEvents::SyllabusEvent
- Defined in:
- lib/canvas_sync/generators/templates/services/live_events/syllabus_event.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from CanvasSync::LiveEvents::BaseHandler
#metadata, #payload, #raw_payload
Attributes inherited from CanvasSync::Job
Instance Method Summary collapse
Methods inherited from CanvasSync::LiveEvents::BaseHandler
Methods inherited from CanvasSync::Job
#create_job_log, #report_checker_wait_time, #update_or_create_model
Instance Method Details
#process ⇒ Object
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 |