Class: Geoblacklight::Configuration::LeafletLayersConfig

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
lib/geoblacklight/configuration/leaflet_layers_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject

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_hObject



16
17
18
# File 'lib/geoblacklight/configuration/leaflet_layers_config.rb', line 16

def to_h
  attributes.merge({"index" => index})
end