Class: GeoConcerns::Discovery::DocumentBuilder::LayerInfoBuilder
- Inherits:
-
Object
- Object
- GeoConcerns::Discovery::DocumentBuilder::LayerInfoBuilder
- Defined in:
- app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb
Instance Attribute Summary collapse
-
#geo_concern ⇒ Object
readonly
Returns the value of attribute geo_concern.
Instance Method Summary collapse
-
#build(document) ⇒ Object
Builds fields about the geospatial file such as geometry and format.
-
#initialize(geo_concern) ⇒ LayerInfoBuilder
constructor
A new instance of LayerInfoBuilder.
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_concern ⇒ Object (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.
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 |