module AeriesApi::Client::StudentPictures

Public Instance Methods

student_picture(school_code:, student_id:) click to toggle source
# 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:) click to toggle source
# 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