Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Student.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**ell_status** | **String** | | [optional]
**enrollments** | [**Array<SchoolEnrollment>**](SchoolEnrollment.md) | | [optional]
**ext** | **Object** | | [optional]
**frl_status** | **String** | | [optional]
**gender** | **String** | | [optional]
**grade** | **String** | | [optional]
**graduation_year** | **String** | | [optional]
Expand Down
24 changes: 23 additions & 1 deletion lib/clever-ruby-v3/models/student.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Student

attr_accessor :ell_status

attr_accessor :frl_status

attr_accessor :enrollments

attr_accessor :ext
Expand Down Expand Up @@ -90,6 +92,7 @@ def self.attribute_map
:'ell_status' => :'ell_status',
:'enrollments' => :'enrollments',
:'ext' => :'ext',
:'frl_status' => :'frl_status',
:'gender' => :'gender',
:'grade' => :'grade',
:'graduation_year' => :'graduation_year',
Expand Down Expand Up @@ -118,6 +121,7 @@ def self.openapi_types
:'credentials' => :'Credentials',
:'dob' => :'String',
:'ell_status' => :'String',
:'frl_status' => :'String',
:'enrollments' => :'Array<SchoolEnrollment>',
:'ext' => :'Object',
:'gender' => :'String',
Expand Down Expand Up @@ -145,6 +149,7 @@ def self.openapi_nullable
Set.new([
:'dob',
:'ell_status',
:'frl_status',
:'gender',
:'grade',
:'graduation_year',
Expand Down Expand Up @@ -190,6 +195,10 @@ def initialize(attributes = {})
self.ell_status = attributes[:'ell_status']
end

if attributes.key?(:'frl_status')
self.frl_status = attributes[:'frl_status']
end

if attributes.key?(:'enrollments')
if (value = attributes[:'enrollments']).is_a?(Array)
self.enrollments = value
Expand Down Expand Up @@ -283,6 +292,8 @@ def list_invalid_properties
def valid?
ell_status_validator = EnumAttributeValidator.new('String', ['Y', 'N', ''])
return false unless ell_status_validator.valid?(@ell_status)
frl_status_validator = EnumAttributeValidator.new('String', ["Free", "Reduced", "Paid", ""])
return false unless frl_status_validator.valid?(@frl_status)
gender_validator = EnumAttributeValidator.new('String', ['M', 'F', 'X', ''])
return false unless gender_validator.valid?(@gender)
grade_validator = EnumAttributeValidator.new('String', ['InfantToddler', 'Preschool', 'PreKindergarten', 'TransitionalKindergarten', 'Kindergarten', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', 'PostGraduate', 'Ungraded', 'Other', ''])
Expand All @@ -306,6 +317,16 @@ def ell_status=(ell_status)
@ell_status = ell_status
end

# Custom attribute writer method checking allowed values (enum).
# @param [Object] frl_status Object to be assigned
def frl_status=(frl_status)
validator = EnumAttributeValidator.new('String', ["Free", "Reduced", "Paid", ""])
unless validator.valid?(frl_status)
fail ArgumentError, "invalid value for 'frl_status', must be one of #{validator.allowable_values}."
end
@frl_status = frl_status
end

# Custom attribute writer method checking allowed values (enum).
# @param [Object] gender Object to be assigned
def gender=(gender)
Expand Down Expand Up @@ -365,6 +386,7 @@ def ==(o)
credentials == o.credentials &&
dob == o.dob &&
ell_status == o.ell_status &&
frl_status == o.frl_status &&
enrollments == o.enrollments &&
ext == o.ext &&
gender == o.gender &&
Expand Down Expand Up @@ -395,7 +417,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[created, credentials, dob, ell_status, enrollments, ext, gender, grade, graduation_year, hispanic_ethnicity, home_language, iep_status, last_modified, legacy_id, location, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa].hash
[created, credentials, dob, ell_status, frl_status, enrollments, ext, gender, grade, graduation_year, hispanic_ethnicity, home_language, iep_status, last_modified, legacy_id, location, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa].hash
end

# Builds the object from hash
Expand Down