Class: INE::Places::ProvincesCollection
- Inherits:
-
Object
- Object
- INE::Places::ProvincesCollection
- Includes:
- Singleton
- Defined in:
- lib/ine/places/provinces_collection.rb
Class Method Summary collapse
Class Method Details
.records ⇒ Object
4 5 6 7 8 |
# File 'lib/ine/places/provinces_collection.rb', line 4 def self.records @records ||= CSV.read("#{INE::Places::ROOT}/data/provinces.csv", headers: true, encoding: 'utf-8').map do |raw_data| build_from_raw_data(raw_data) end.sort_by(&:slug) end |