module AeriesApi::Client::Students
Public Instance Methods
student(school_code:, student_id:)
click to toggle source
# File lib/aeries-api/client/students.rb, line 4 def student(school_code:, student_id:) response = self.class.get("/schools/#{school_code}/students/#{student_id}") @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end
students(school_code:, grade: nil)
click to toggle source
# File lib/aeries-api/client/students.rb, line 10 def students(school_code:, grade: nil) if grade endpoint = "/schools/#{school_code}/students/grade/#{grade}" else endpoint = "/schools/#{school_code}/students" end response = self.class.get(endpoint) @error_handler.handle_error(response) mash_and_underscore_keys(response.parsed_response) end