Class: Geocodio::SchoolDistrict

Inherits:
Object
  • Object
show all
Defined in:
lib/geocodio/school_district.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_highObject (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_lowObject (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_codeObject (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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/geocodio/school_district.rb', line 3

def name
  @name
end