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