This gem provides a Ruby interface to the Department for Education's Get Information About Schools (GIAS) CSV.
Add this line to your application's Gemfile:
gem "gias"
To get the list of all schools:
Gias::School.all
This will:
- Download the latest CSV from the DfE's website.
- Convert the CSV to an array of
Gias::School
objects.
The attribute names are the CSV column names, without parentheses, converted to snake_case.
For example:
{
"LA (code)" => :la_code,
"PhaseOfEducation (name)" => :phase_of_education_name,
}
Bug reports and pull requests are welcome on GitHub at https://github.com/Nitemaeric/gias.
The gem is available as open source under the terms of the MIT License.