Sha256: e1d0dfb01a3707e5c161243ea8db6907292c480fe03482c3b35ac498dc004916

Contents?: true

Size: 604 Bytes

Versions: 25

Compression:

Stored size: 604 Bytes

Contents

# <%= autogenerated_event_warning %>

module LiveEvents
  class GradeEvent < CanvasSync::LiveEvents::BaseHandler

    def process
      raise "process must be implemented in your subclass"
    end

    private

    def submission
      Submission.find_by(canvas_submission_id: local_canvas_id(payload[:submission_id]))
    end

    def assignment
      Assignment.find_by(canvas_assignment_id: local_canvas_id(payload[:assignment_id]))
    end

    def user
      User.find_by(canvas_user_id: local_canvas_id(payload[:user_id]))
    end
  end

  class GradeChangedEvent < LiveEvents::GradeEvent; end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/services/live_events/grade_event.rb