Module: USGeo
- Defined in:
- lib/us_geo.rb,
lib/us_geo/zcta.rb,
lib/us_geo/place.rb,
lib/us_geo/state.rb,
lib/us_geo/county.rb,
lib/us_geo/engine.rb,
lib/us_geo/region.rb,
lib/us_geo/version.rb,
lib/us_geo/division.rb,
lib/us_geo/urban_area.rb,
lib/us_geo/zcta_place.rb,
lib/us_geo/base_record.rb,
lib/us_geo/zcta_county.rb,
lib/us_geo/demographics.rb,
lib/us_geo/place_county.rb,
lib/us_geo/urban_cluster.rb,
lib/us_geo/urbanized_area.rb,
lib/us_geo/zcta_urban_area.rb,
lib/us_geo/metropolitan_area.rb,
lib/us_geo/micropolitan_area.rb,
lib/us_geo/urban_area_county.rb,
lib/us_geo/county_subdivision.rb,
lib/us_geo/metropolitan_division.rb,
lib/us_geo/designated_market_area.rb,
lib/us_geo/combined_statistical_area.rb,
lib/us_geo/core_based_statistical_area.rb
Defined Under Namespace
Modules: Demographics Classes: BaseRecord, CombinedStatisticalArea, CoreBasedStatisticalArea, County, CountySubdivision, DesignatedMarketArea, Division, Engine, LoadError, MetropolitanArea, MetropolitanDivision, MicropolitanArea, Place, PlaceCounty, Region, State, UrbanArea, UrbanAreaCounty, UrbanCluster, UrbanizedArea, Zcta, ZctaCounty, ZctaPlace, ZctaUrbanArea
Constant Summary collapse
- BASE_DATA_URI =
"https://raw.githubusercontent.com/bdurand/us_geo/master/data/dist"
- VERSION =
"1.0.2"
Class Method Summary collapse
-
.base_data_uri ⇒ Object
The root URI as a string of where to find the data files.
- .base_data_uri=(value) ⇒ Object
Class Method Details
.base_data_uri ⇒ Object
The root URI as a string of where to find the data files. This can be a URL or a file system path. The default is to load the data from files hosted with the project code on GitHub.
40 41 42 43 44 45 46 |
# File 'lib/us_geo.rb', line 40 def base_data_uri if defined?(@base_data_uri) && @base_data_uri @base_data_uri else BASE_DATA_URI end end |
.base_data_uri=(value) ⇒ Object
48 49 50 |
# File 'lib/us_geo.rb', line 48 def base_data_uri=(value) @base_data_uri = (value.nil? ? nil : value.to_s) end |