Class: Clever::Models::School
- Inherits:
-
Object
- Object
- Clever::Models::School
- Defined in:
- lib/clever/models/school.rb
Instance Attribute Summary collapse
-
#high_grade ⇒ Object
Returns the value of attribute high_grade.
-
#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.
-
#low_grade ⇒ Object
Returns the value of attribute low_grade.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nces_id ⇒ Object
Returns the value of attribute nces_id.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#principal ⇒ Object
Returns the value of attribute principal.
-
#school_number ⇒ Object
Returns the value of attribute school_number.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
Instance Method Summary collapse
-
#initialize(params) ⇒ School
constructor
A new instance of School.
Constructor Details
#initialize(params) ⇒ School
Returns a new instance of School.
4 5 6 |
# File 'lib/clever/models/school.rb', line 4 def initialize params params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#high_grade ⇒ Object
Returns the value of attribute high_grade.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def high_grade @high_grade end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def last_modified @last_modified end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def location @location end |
#low_grade ⇒ Object
Returns the value of attribute low_grade.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def low_grade @low_grade end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def name @name end |
#nces_id ⇒ Object
Returns the value of attribute nces_id.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def nces_id @nces_id end |
#phone ⇒ Object
Returns the value of attribute phone.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def phone @phone end |
#principal ⇒ Object
Returns the value of attribute principal.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def principal @principal end |
#school_number ⇒ Object
Returns the value of attribute school_number.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def school_number @school_number end |
#sis_id ⇒ Object
Returns the value of attribute sis_id.
2 3 4 |
# File 'lib/clever/models/school.rb', line 2 def sis_id @sis_id end |