Class: Geocodio::SchoolDistrict
- Inherits:
-
Object
- Object
- Geocodio::SchoolDistrict
- Defined in:
- lib/geocodio/school_district.rb
Instance Attribute Summary collapse
-
#grade_high ⇒ Object
readonly
Returns the value of attribute grade_high.
-
#grade_low ⇒ Object
readonly
Returns the value of attribute grade_low.
-
#lea_code ⇒ Object
readonly
Returns the value of attribute lea_code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(payload = {}) ⇒ SchoolDistrict
constructor
A new instance of SchoolDistrict.
Constructor Details
#initialize(payload = {}) ⇒ SchoolDistrict
Returns a new instance of SchoolDistrict.
8 9 10 11 12 13 |
# File 'lib/geocodio/school_district.rb', line 8 def initialize(payload = {}) @name = payload['name'] @lea_code = payload['lea_code'] @grade_low = payload['grade_low'] @grade_high = payload['grade_high'] end |
Instance Attribute Details
#grade_high ⇒ Object (readonly)
Returns the value of attribute grade_high.
6 7 8 |
# File 'lib/geocodio/school_district.rb', line 6 def grade_high @grade_high end |
#grade_low ⇒ Object (readonly)
Returns the value of attribute grade_low.
5 6 7 |
# File 'lib/geocodio/school_district.rb', line 5 def grade_low @grade_low end |
#lea_code ⇒ Object (readonly)
Returns the value of attribute lea_code.
4 5 6 |
# File 'lib/geocodio/school_district.rb', line 4 def lea_code @lea_code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/geocodio/school_district.rb', line 3 def name @name end |