Class: ChicagoSchools::School
- Inherits:
-
Object
- Object
- ChicagoSchools::School
- Defined in:
- lib/chicago_schools/school.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#grades ⇒ Object
Returns the value of attribute grades.
-
#primary_address ⇒ Object
Returns the value of attribute primary_address.
-
#school_name ⇒ Object
Returns the value of attribute school_name.
Instance Method Summary collapse
-
#initialize(hash) ⇒ School
constructor
A new instance of School.
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
#definition ⇒ Object
Returns the value of attribute definition.
4 5 6 |
# File 'lib/chicago_schools/school.rb', line 4 def definition @definition end |
#grades ⇒ Object
Returns the value of attribute grades.
4 5 6 |
# File 'lib/chicago_schools/school.rb', line 4 def grades @grades end |
#primary_address ⇒ Object
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_name ⇒ Object
Returns the value of attribute school_name.
4 5 6 |
# File 'lib/chicago_schools/school.rb', line 4 def school_name @school_name end |