Class: EnrichmentDb::Ato::Datum

Inherits:
DatumModel show all
Defined in:
lib/enrichment_db/ato/datum.rb

Constant Summary collapse

DATABASE_NAME =
'ato'
UID_NAME =
'region_id'

Instance Attribute Summary collapse

Attributes inherited from DatumModel

#attrs

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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/enrichment_db/ato/datum.rb', line 4

def id
  @id
end

Class Method Details

.format_result(result) ⇒ Object



9
10
11
# File 'lib/enrichment_db/ato/datum.rb', line 9

def self.format_result(result)
  EnrichmentDb::Helper.format_geo_result(result)
end