Class: USGeo::BaseRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- USGeo::BaseRecord
show all
- Defined in:
- lib/us_geo/base_record.rb
Overview
Base class that all models inherit from.
Direct Known Subclasses
CombinedStatisticalArea, CoreBasedStatisticalArea, County, CountySubdivision, DesignatedMarketArea, Division, MetropolitanDivision, Place, PlaceCounty, Region, State, UrbanArea, UrbanAreaCounty, Zcta, ZctaCounty, ZctaPlace, ZctaUrbanArea
Constant Summary
collapse
- STATUS_IMPORTED =
1
- STATUS_REMOVED =
-1
- STATUS_MANUAL =
0
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.load!(location = nil, gzipped: true) ⇒ Object
29
30
31
|
# File 'lib/us_geo/base_record.rb', line 29
def load!(location = nil, gzipped: true)
raise NotImplementedError
end
|
Instance Method Details
#imported? ⇒ Boolean
91
92
93
|
# File 'lib/us_geo/base_record.rb', line 91
def imported?
status == STATUS_IMPORTED
end
|
#manual? ⇒ Boolean
99
100
101
|
# File 'lib/us_geo/base_record.rb', line 99
def manual?
status == STATUS_MANUAL
end
|
#removed? ⇒ Boolean
95
96
97
|
# File 'lib/us_geo/base_record.rb', line 95
def removed?
status == STATUS_REMOVED
end
|