Class: GeoConcerns::Discovery::DocumentBuilder::LayerInfoBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geo_concern) ⇒ LayerInfoBuilder

Returns a new instance of LayerInfoBuilder.



7
8
9
# File 'app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb', line 7

def initialize(geo_concern)
  @geo_concern = geo_concern
end

Instance Attribute Details

#geo_concernObject (readonly)

Returns the value of attribute geo_concern.



5
6
7
# File 'app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb', line 5

def geo_concern
  @geo_concern
end

Instance Method Details

#build(document) ⇒ Object

Builds fields about the geospatial file such as geometry and format.

Parameters:



13
14
15
16
# File 'app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb', line 13

def build(document)
  document.geom_type = geom_type
  document.format = format
end