Class: Decidim::Map::Utility Abstract
- Inherits:
-
Object
- Object
- Decidim::Map::Utility
- Defined in:
- lib/decidim/map/utility.rb
Overview
This class is abstract.
Generic map utility that will be used for providing different map functionality to the application.
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
Instance Method Summary collapse
-
#initialize(organization:, config:, locale: I18n.locale.to_s) ⇒ Utility
constructor
Initializes the map utility.
Constructor Details
#initialize(organization:, config:, locale: I18n.locale.to_s) ⇒ Utility
Initializes the map utility.
20 21 22 23 24 |
# File 'lib/decidim/map/utility.rb', line 20 def initialize(organization:, config:, locale: I18n.locale.to_s) @organization = organization @locale = locale configure!(config) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/decidim/map/utility.rb', line 10 def configuration @configuration end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
10 11 12 |
# File 'lib/decidim/map/utility.rb', line 10 def locale @locale end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
10 11 12 |
# File 'lib/decidim/map/utility.rb', line 10 def organization @organization end |