Class: OsmImport::Mapper::Id

Inherits:
Base
  • Object
show all
Defined in:
lib/osm_import/mapper.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#after_create, #after_import, #indexes

Instance Method Details

#assignsObject



42
43
44
# File 'lib/osm_import/mapper.rb', line 42

def assigns
  { name => "(src.tags->'#{name}')::INT8" }
end

#fieldsObject



38
39
40
# File 'lib/osm_import/mapper.rb', line 38

def fields
  { name => "INT8" }
end