Class: Pandarus::Sis
- Defined in:
- lib/pandarus/sis_api.rb
Instance Attribute Summary
Attributes inherited from APIBase
Instance Method Summary collapse
-
#disable_assignments_currently_enabled_for_grade_export_to_sis(course_id, opts = {}) ⇒ Object
Disable assignments currently enabled for grade export to SIS.
-
#retrieve_assignments_enabled_for_grade_export_to_sis_accounts(account_id, opts = {}) ⇒ Object
Retrieve assignments enabled for grade export to SIS.
-
#retrieve_assignments_enabled_for_grade_export_to_sis_courses(course_id, opts = {}) ⇒ Object
Retrieve assignments enabled for grade export to SIS.
Methods inherited from APIBase
#initialize, #mixed_request, #page_params_load, #page_params_store, #parse_page_params!, #remember_key, #underscored_merge_opts, #was_last_page?
Constructor Details
This class inherits a constructor from Pandarus::APIBase
Instance Method Details
#disable_assignments_currently_enabled_for_grade_export_to_sis(course_id, opts = {}) ⇒ Object
Disable assignments currently enabled for grade export to SIS
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/pandarus/sis_api.rb', line 87 def disable_assignments_currently_enabled_for_grade_export_to_sis(course_id,opts={}) query_param_keys = [ ] form_param_keys = [ :grading_period_id, ] # verify existence of params raise "course_id is required" if course_id.nil? # set default values and merge with input = underscored_merge_opts(opts, :course_id => course_id ) # resource path path = path_replace("/sis/courses/{course_id}/disable_post_to_sis", :course_id => course_id) headers = nil form_params = select_params(, form_param_keys) query_params = select_query_params(, query_param_keys) response = mixed_request(:put, path, query_params, form_params, headers) response end |
#retrieve_assignments_enabled_for_grade_export_to_sis_accounts(account_id, opts = {}) ⇒ Object
Retrieve assignments enabled for grade export to SIS
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/pandarus/sis_api.rb', line 13 def retrieve_assignments_enabled_for_grade_export_to_sis_accounts(account_id,opts={}) query_param_keys = [ :course_id, :starts_before, :ends_after, :include ] form_param_keys = [ ] # verify existence of params raise "account_id is required" if account_id.nil? # set default values and merge with input = underscored_merge_opts(opts, :account_id => account_id ) # resource path path = path_replace("/sis/accounts/{account_id}/assignments", :account_id => account_id) headers = nil form_params = select_params(, form_param_keys) query_params = select_query_params(, query_param_keys) response = mixed_request(:get, path, query_params, form_params, headers) response end |
#retrieve_assignments_enabled_for_grade_export_to_sis_courses(course_id, opts = {}) ⇒ Object
Retrieve assignments enabled for grade export to SIS
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/pandarus/sis_api.rb', line 50 def retrieve_assignments_enabled_for_grade_export_to_sis_courses(course_id,opts={}) query_param_keys = [ :account_id, :starts_before, :ends_after, :include ] form_param_keys = [ ] # verify existence of params raise "course_id is required" if course_id.nil? # set default values and merge with input = underscored_merge_opts(opts, :course_id => course_id ) # resource path path = path_replace("/sis/courses/{course_id}/assignments", :course_id => course_id) headers = nil form_params = select_params(, form_param_keys) query_params = select_query_params(, query_param_keys) response = mixed_request(:get, path, query_params, form_params, headers) response end |