Module: AeriesApi::Client::Contacts

Included in:
AeriesApi::Client
Defined in:
lib/aeries-api/client/contacts.rb

Instance Method Summary collapse

Instance Method Details

#contacts(school_code:, student_id:) ⇒ Object



4
5
6
7
8
# File 'lib/aeries-api/client/contacts.rb', line 4

def contacts(school_code:, student_id:)
  response = self.class.get("/schools/#{school_code}/contacts/#{student_id}")
  @error_handler.handle_error(response)
  mash_and_underscore_keys(response.parsed_response)
end