Module: AeriesApi::Client::StudentPictures
- Included in:
- AeriesApi::Client
- Defined in:
- lib/aeries-api/client/student_pictures.rb
Instance Method Summary collapse
Instance Method Details
#student_picture(school_code:, student_id:) ⇒ Object
4 5 6 7 8 |
# File 'lib/aeries-api/client/student_pictures.rb', line 4 def student_picture(school_code:, student_id:) response = self.class.get("/schools/#{school_code}/studentpictures/#{student_id}") @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end |
#student_pictures(school_code:) ⇒ Object
10 11 12 13 14 |
# File 'lib/aeries-api/client/student_pictures.rb', line 10 def student_pictures(school_code:) response = self.class.get("/schools/#{school_code}/studentpictures") @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end |