Class: Geoblacklight::Configuration::LeafletLayersConfig
- Inherits:
-
Object
- Object
- Geoblacklight::Configuration::LeafletLayersConfig
- Includes:
- ActiveModel::Attributes, ActiveModel::Model
- Defined in:
- lib/geoblacklight/configuration/leaflet_layers_config.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ LeafletLayersConfig
constructor
A new instance of LeafletLayersConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ LeafletLayersConfig
Returns a new instance of LeafletLayersConfig.
11 12 13 14 |
# File 'lib/geoblacklight/configuration/leaflet_layers_config.rb', line 11 def initialize(attributes = {}) super @index = attributes[:index] end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
9 10 11 |
# File 'lib/geoblacklight/configuration/leaflet_layers_config.rb', line 9 def index @index end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/geoblacklight/configuration/leaflet_layers_config.rb', line 16 def to_h attributes.merge({"index" => index}) end |