Class: Decidim::NavigationMaps::BlueprintArea
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::NavigationMaps::BlueprintArea
- Includes:
- TranslatableAttributes
- Defined in:
- app/models/decidim/navigation_maps/blueprint_area.rb
Overview
Abstract class from which all models in this engine inherit.
Instance Method Summary collapse
Instance Method Details
#to_geoson ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/models/decidim/navigation_maps/blueprint_area.rb', line 17 def to_geoson { type: area_type, geometry: area, properties: { link: link, popup: link_type == "direct", color: color, title: translated_attribute(title), description: translated_attribute(description) } } end |