Class: LiveEvents::AssignmentEvent
- Inherits:
-
CanvasSync::LiveEvents::BaseHandler
- Object
- ActiveJob::Base
- CanvasSync::Job
- CanvasSync::LiveEvents::BaseHandler
- LiveEvents::AssignmentEvent
- Defined in:
- lib/canvas_sync/generators/templates/services/live_events/assignment_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/assignment_event.rb', line 6 def process canvas_assignment_id = local_canvas_id(payload[:assignment_id]) assignment = Assignment.where(canvas_id: canvas_assignment_id).first_or_initialize assignment.context_id = canvas_course_id assignment.sync_from_api end |