Module: AeriesApi::Client::Supplemental
- Included in:
- AeriesApi::Client
- Defined in:
- lib/aeries-api/client/supplemental.rb
Instance Method Summary collapse
- #district_supplemental(school_code:, student_id:) ⇒ Object
- #school_supplemental(school_code:, student_id:) ⇒ Object
- #update_school_supplemental(school_code:, student_number:, columns:) ⇒ Object
Instance Method Details
#district_supplemental(school_code:, student_id:) ⇒ Object
10 11 12 13 14 |
# File 'lib/aeries-api/client/supplemental.rb', line 10 def district_supplemental(school_code:, student_id:) response = self.class.get("/schools/#{school_code}/districtsupplemental/#{student_id}") @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end |
#school_supplemental(school_code:, student_id:) ⇒ Object
4 5 6 7 8 |
# File 'lib/aeries-api/client/supplemental.rb', line 4 def school_supplemental(school_code:, student_id:) response = self.class.get("/schools/#{school_code}/schoolsupplemental/#{student_id}") @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end |
#update_school_supplemental(school_code:, student_number:, columns:) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/aeries-api/client/supplemental.rb', line 16 def update_school_supplemental(school_code:, student_number:, columns:) = { body: { Columns: camelize_keys(columns) }.to_json, } response = self.class.post("/updateschoolsupplemental/#{school_code}/#{student_number}", ) @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end |