lib/mettlr/models/schedule.rb in mettlr-0.1.3 vs lib/mettlr/models/schedule.rb in mettlr-0.1.4
- old
+ new
@@ -13,10 +13,11 @@
option :allow_copy_paste, type: Dry::Types['bool']
option :source_app, Dry::Types['coercible.string']
option :test_start_notification_url, type: Dry::Types['strict.string']
option :test_finish_notification_url, type: Dry::Types['strict.string']
option :test_graded_notification_url, type: Dry::Types['strict.string']
+ option :visual_proctoring, type: Dry::Types['hash']
option :test_resume_enabled_for_expired_test_url, optional: true
option :exit_redirection_url, optional: true
option :schedule_window
def self.find_all
Mettlr::Connection.get("/v1/schedules").body.schedules.map {|x| new(x)}
@@ -49,10 +50,11 @@
"allowCopyPaste" => @allow_copy_paste,
"exitRedirectionUrl" => @exit_redirection_url,
"testStartNotificationUrl" => @test_start_notification_url,
"testFinishNotificationUrl" => @test_finish_notification_url,
"testGradedNotificationUrl" => @test_graded_notification_url,
- "testResumeEnabledForExpiredTestURL" => @test_resume_enabled_for_expired_test_url}
+ "testResumeEnabledForExpiredTestURL" => @test_resume_enabled_for_expired_test_url,
+ "visualProctoring": @visual_proctoring}
}
end
end
end