Class: Navigasmic::Builder::MapBuilder::Configuration

Inherits:
Base::Configuration show all
Defined in:
lib/navigasmic/builders/map_builder.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Configuration

#excluded_keys

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/navigasmic/builders/map_builder.rb', line 10

def initialize
  # where you want the changefreq and other options to be looked for
  @option_namespace = :map

  # tag configurations
  @wrapper_tag = :urlset
  @item_tag = :url

  # xml namespace / schema
  @xmlns = 'http://www.sitemaps.org/schemas/sitemap/0.9'
  @xmlns_xsi = 'http://www.w3.org/2001/XMLSchema-instance'
  @schema_location = 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd'

  # misc defaults
  @changefreq = 'yearly'
  @item_changefreq = 'yearly'

  super
end

Instance Attribute Details

#changefreqObject

Returns the value of attribute changefreq.



8
9
10
# File 'lib/navigasmic/builders/map_builder.rb', line 8

def changefreq
  @changefreq
end

#group_tagObject

Returns the value of attribute group_tag.



6
7
8
# File 'lib/navigasmic/builders/map_builder.rb', line 6

def group_tag
  @group_tag
end

#item_changefreqObject

Returns the value of attribute item_changefreq.



8
9
10
# File 'lib/navigasmic/builders/map_builder.rb', line 8

def item_changefreq
  @item_changefreq
end

#item_tagObject

Returns the value of attribute item_tag.



6
7
8
# File 'lib/navigasmic/builders/map_builder.rb', line 6

def item_tag
  @item_tag
end

#label_generatorObject

Returns the value of attribute label_generator.



6
7
8
# File 'lib/navigasmic/builders/map_builder.rb', line 6

def label_generator
  @label_generator
end

#option_namespaceObject

Returns the value of attribute option_namespace.



5
6
7
# File 'lib/navigasmic/builders/map_builder.rb', line 5

def option_namespace
  @option_namespace
end

#schema_locationObject

Returns the value of attribute schema_location.



7
8
9
# File 'lib/navigasmic/builders/map_builder.rb', line 7

def schema_location
  @schema_location
end

#wrapper_tagObject

Returns the value of attribute wrapper_tag.



6
7
8
# File 'lib/navigasmic/builders/map_builder.rb', line 6

def wrapper_tag
  @wrapper_tag
end

#xmlnsObject

Returns the value of attribute xmlns.



7
8
9
# File 'lib/navigasmic/builders/map_builder.rb', line 7

def xmlns
  @xmlns
end

#xmlns_xsiObject

Returns the value of attribute xmlns_xsi.



7
8
9
# File 'lib/navigasmic/builders/map_builder.rb', line 7

def xmlns_xsi
  @xmlns_xsi
end