Class: EnrichmentDb::Census::Datum
- Inherits:
-
DatumModel
- Object
- DatumModel
- EnrichmentDb::Census::Datum
- Defined in:
- lib/enrichment_db/census/datum.rb
Constant Summary collapse
- DATABASE_NAME =
'censis'
- UID_NAME =
'region_id'
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from DatumModel
Class Method Summary collapse
Methods inherited from DatumModel
all, by_id, by_lambda, #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from EnrichmentDb::DatumModel
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/enrichment_db/census/datum.rb', line 4 def id @id end |
Class Method Details
.format_result(result) ⇒ Object
9 10 11 |
# File 'lib/enrichment_db/census/datum.rb', line 9 def self.format_result(result) EnrichmentDb::Helper.format_geo_result(result) end |