Class: Clever::Models::Student
- Inherits:
-
Object
- Object
- Clever::Models::Student
- Defined in:
- lib/clever/models/student.rb
Instance Attribute Summary collapse
-
#district_id ⇒ Object
Returns the value of attribute district_id.
-
#dob ⇒ Object
Returns the value of attribute dob.
-
#frl_status ⇒ Object
Returns the value of attribute frl_status.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#grade ⇒ Object
Returns the value of attribute grade.
-
#hispanic_ethnicity ⇒ Object
Returns the value of attribute hispanic_ethnicity.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#race ⇒ Object
Returns the value of attribute race.
-
#school_id ⇒ Object
Returns the value of attribute school_id.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
-
#state_id ⇒ Object
Returns the value of attribute state_id.
-
#student_number ⇒ Object
Returns the value of attribute student_number.
Instance Method Summary collapse
-
#initialize(params) ⇒ Student
constructor
A new instance of Student.
Constructor Details
#initialize(params) ⇒ Student
Returns a new instance of Student.
4 5 6 |
# File 'lib/clever/models/student.rb', line 4 def initialize params params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#district_id ⇒ Object
Returns the value of attribute district_id.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def district_id @district_id end |
#dob ⇒ Object
Returns the value of attribute dob.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def dob @dob end |
#frl_status ⇒ Object
Returns the value of attribute frl_status.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def frl_status @frl_status end |
#gender ⇒ Object
Returns the value of attribute gender.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def gender @gender end |
#grade ⇒ Object
Returns the value of attribute grade.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def grade @grade end |
#hispanic_ethnicity ⇒ Object
Returns the value of attribute hispanic_ethnicity.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def hispanic_ethnicity @hispanic_ethnicity end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def last_modified @last_modified end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def name @name end |
#race ⇒ Object
Returns the value of attribute race.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def race @race end |
#school_id ⇒ Object
Returns the value of attribute school_id.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def school_id @school_id end |
#sis_id ⇒ Object
Returns the value of attribute sis_id.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def sis_id @sis_id end |
#state_id ⇒ Object
Returns the value of attribute state_id.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def state_id @state_id end |
#student_number ⇒ Object
Returns the value of attribute student_number.
2 3 4 |
# File 'lib/clever/models/student.rb', line 2 def student_number @student_number end |