Class: EnrichmentDb::Geo::State

Inherits:
Region show all
Defined in:
lib/enrichment_db/geo/state.rb

Constant Summary

Constants inherited from Region

Region::DATABASE_NAME

Instance Attribute Summary

Attributes inherited from Region

#id, #name

Attributes inherited from DatumModel

#attrs

Class Method Summary collapse

Methods inherited from Region

by_boundary, by_id, #initialize

Methods inherited from DatumModel

all, by_id, by_lambda, format_result, #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from EnrichmentDb::Geo::Region

Class Method Details

.fieldsObject



2
3
4
# File 'lib/enrichment_db/geo/state.rb', line 2

def self.fields
	'id, name'
end

.parent_classObject



10
11
12
# File 'lib/enrichment_db/geo/state.rb', line 10

def self.parent_class
	EnrichmentDb::Geo::Region
end

.scaleObject



6
7
8
# File 'lib/enrichment_db/geo/state.rb', line 6

def self.scale
	16
end