Skip to content

Commit

Permalink
PLS-5466 add frl_status
Browse files Browse the repository at this point in the history
  • Loading branch information
yratanov committed Nov 29, 2023
1 parent 5a26981 commit a242267
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/Student.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**district** | **String** | | [optional]
**dob** | **String** | | [optional]
**ell_status** | **String** | | [optional]
**frl_status** | **String** | | [optional]
**email** | **String** | | [optional]
**gender** | **String** | | [optional]
**grade** | **String** | | [optional]
Expand Down
23 changes: 22 additions & 1 deletion lib/clever-ruby/models/student.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Student
attr_accessor :dob

attr_accessor :ell_status

attr_accessor :frl_status

attr_accessor :email

Expand Down Expand Up @@ -95,6 +97,7 @@ def self.attribute_map
:'district' => :'district',
:'dob' => :'dob',
:'ell_status' => :'ell_status',
:'frl_status' => :'frl_status',
:'email' => :'email',
:'gender' => :'gender',
:'grade' => :'grade',
Expand Down Expand Up @@ -126,6 +129,7 @@ def self.swagger_types
:'district' => :'String',
:'dob' => :'String',
:'ell_status' => :'String',
:'frl_status' => :'String',
:'email' => :'String',
:'gender' => :'String',
:'grade' => :'String',
Expand Down Expand Up @@ -173,6 +177,10 @@ def initialize(attributes = {})
self.dob = attributes[:'dob']
end

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

if attributes.has_key?(:'ell_status')
self.ell_status = attributes[:'ell_status']
end
Expand Down Expand Up @@ -273,6 +281,8 @@ def list_invalid_properties
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
frl_status_validator = EnumAttributeValidator.new('String', ["Free", "Reduced", "Paid", ""])
return false unless frl_status_validator.valid?(@frl_status)
ell_status_validator = EnumAttributeValidator.new('String', ["Y", "N", ""])
return false unless ell_status_validator.valid?(@ell_status)
gender_validator = EnumAttributeValidator.new('String', ["M", "F", "X", ""])
Expand All @@ -297,6 +307,16 @@ def ell_status=(ell_status)
end
@ell_status = ell_status
end

# Custom attribute writer method checking allowed values (enum).
# @param [Object] ell_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
Expand Down Expand Up @@ -358,6 +378,7 @@ def ==(o)
district == o.district &&
dob == o.dob &&
ell_status == o.ell_status &&
frl_status == o.frl_status &&
email == o.email &&
gender == o.gender &&
grade == o.grade &&
Expand Down Expand Up @@ -388,7 +409,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
[created, credentials, district, dob, ell_status, email, gender, grade, graduation_year, hispanic_ethnicity, home_language, id, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa, ext].hash
[created, credentials, district, dob, frl_status, ell_status, email, gender, grade, graduation_year, hispanic_ethnicity, home_language, id, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa, ext].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/clever-ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Clever
VERSION = '2.1.3'
VERSION = '2.1.4'
end

0 comments on commit a242267

Please sign in to comment.