Class: OsmImport::Mapper::Base
- Inherits:
-
Struct
- Object
- Struct
- OsmImport::Mapper::Base
show all
- Defined in:
- lib/osm_import/mapper.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
11
12
13
|
# File 'lib/osm_import/mapper.rb', line 11
def name
@name
end
|
Instance Method Details
#after_create(*args) ⇒ Object
25
26
|
# File 'lib/osm_import/mapper.rb', line 25
def after_create(*args)
end
|
#after_import(*args) ⇒ Object
28
29
|
# File 'lib/osm_import/mapper.rb', line 28
def after_import(*args)
end
|
#assigns ⇒ Object
17
18
19
|
# File 'lib/osm_import/mapper.rb', line 17
def assigns
{ name => "src.tags->'#{name}'" }
end
|
#fields ⇒ Object
13
14
15
|
# File 'lib/osm_import/mapper.rb', line 13
def fields
{ name => "VARCHAR(255)" }
end
|
#indexes ⇒ Object
21
22
23
|
# File 'lib/osm_import/mapper.rb', line 21
def indexes
{}
end
|