Class: ChicagoSchools::School

Inherits:
Object
  • Object
show all
Defined in:
lib/chicago_schools/school.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ School

Returns a new instance of School.



6
7
8
9
10
11
# File 'lib/chicago_schools/school.rb', line 6

def initialize(hash)
	@primary_address = hash["primary_address"]
	@school_name = hash["school_name"]
	@definition = hash["definition"]
	@grades = hash["grades"]
end

Instance Attribute Details

#definitionObject

Returns the value of attribute definition.



4
5
6
# File 'lib/chicago_schools/school.rb', line 4

def definition
  @definition
end

#gradesObject

Returns the value of attribute grades.



4
5
6
# File 'lib/chicago_schools/school.rb', line 4

def grades
  @grades
end

#primary_addressObject

Returns the value of attribute primary_address.



4
5
6
# File 'lib/chicago_schools/school.rb', line 4

def primary_address
  @primary_address
end

#school_nameObject

Returns the value of attribute school_name.



4
5
6
# File 'lib/chicago_schools/school.rb', line 4

def school_name
  @school_name
end