Class: AeriesApi::Client
- Inherits:
-
Object
- Object
- AeriesApi::Client
- Includes:
- Contacts, Schools, StudentGroups, StudentPictures, StudentPrograms, Students, Supplemental, HTTParty
- Defined in:
- lib/aeries-api/client.rb,
lib/aeries-api/client/schools.rb,
lib/aeries-api/client/contacts.rb,
lib/aeries-api/client/students.rb,
lib/aeries-api/client/supplemental.rb,
lib/aeries-api/client/student_groups.rb,
lib/aeries-api/client/student_pictures.rb,
lib/aeries-api/client/student_programs.rb
Defined Under Namespace
Modules: Contacts, Schools, StudentGroups, StudentPictures, StudentPrograms, Students, Supplemental
Instance Method Summary collapse
-
#initialize(aeries_cert: nil, base_uri: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Supplemental
#district_supplemental, #school_supplemental, #update_school_supplemental
Methods included from StudentPrograms
Methods included from StudentPictures
#student_picture, #student_pictures
Methods included from StudentGroups
Methods included from Students
Methods included from Schools
Methods included from Contacts
Constructor Details
#initialize(aeries_cert: nil, base_uri: nil) ⇒ Client
Returns a new instance of Client.
27 28 29 30 31 32 33 34 |
# File 'lib/aeries-api/client.rb', line 27 def initialize(aeries_cert: nil, base_uri: nil) @error_handler = AeriesApi::ErrorHandler.new aeries_cert ||= ENV['AERIES_CERT'] base_uri ||= ENV['AERIES_BASE_URI'] self.class..merge!(headers: { 'AERIES-CERT': aeries_cert, 'Content-Type': 'application/json' }, base_uri: base_uri) end |