Class: CampusIvy::Resources::StudentAwards
- Inherits:
-
Object
- Object
- CampusIvy::Resources::StudentAwards
- Extended by:
- T::Sig
- Defined in:
- lib/campus_ivy/resources/student_awards.rb
Instance Method Summary collapse
- #get_pell_grant_min_max(award_year_id:) ⇒ Object
-
#initialize(client) ⇒ StudentAwards
constructor
A new instance of StudentAwards.
- #list(institution_student_id: nil, student_id_list: nil, start_date: nil, end_date: nil) ⇒ Object
Constructor Details
#initialize(client) ⇒ StudentAwards
Returns a new instance of StudentAwards.
9 10 11 |
# File 'lib/campus_ivy/resources/student_awards.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#get_pell_grant_min_max(award_year_id:) ⇒ Object
39 40 41 42 |
# File 'lib/campus_ivy/resources/student_awards.rb', line 39 def get_pell_grant_min_max(award_year_id:) response = @client.connection.get("StudentAwards/GetPellGrantMinMax/#{award_year_id}") CampusIvy::Object.new(response.body) end |
#list(institution_student_id: nil, student_id_list: nil, start_date: nil, end_date: nil) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/campus_ivy/resources/student_awards.rb', line 21 def list( institution_student_id: nil, student_id_list: nil, start_date: nil, end_date: nil ) params = { 'request.institutionStudentId' => institution_student_id, 'request.studentIdList' => student_id_list, 'request.startDate' => start_date, 'request.endDate' => end_date }.compact response = @client.connection.get('StudentAwards', params) CampusIvy::Object.new(response.body) end |