Class: USGeo::DesignatedMarketArea
- Inherits:
-
BaseRecord
- Object
- ActiveRecord::Base
- BaseRecord
- USGeo::DesignatedMarketArea
- Defined in:
- lib/us_geo/designated_market_area.rb
Overview
Media market (DMA) as defined by the Nielsen Company.
Constant Summary
Constants inherited from BaseRecord
BaseRecord::STATUS_IMPORTED, BaseRecord::STATUS_MANUAL, BaseRecord::STATUS_REMOVED
Class Method Summary collapse
Methods inherited from BaseRecord
#imported?, #manual?, #removed?
Class Method Details
.load!(uri = nil) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/us_geo/designated_market_area.rb', line 16 def load!(uri = nil) location = data_uri(uri || "dmas.csv") import! do load_data_file(location) do |row| load_record!(code: row["Code"]) do |record| record.name = row["Name"] end end end end |