Class: Navigasmic::Builder::MapBuilder::Configuration
- Inherits:
-
Base::Configuration
- Object
- Base::Configuration
- Navigasmic::Builder::MapBuilder::Configuration
- Defined in:
- lib/navigasmic/builders/map_builder.rb
Instance Attribute Summary collapse
-
#changefreq ⇒ Object
Returns the value of attribute changefreq.
-
#group_tag ⇒ Object
Returns the value of attribute group_tag.
-
#item_changefreq ⇒ Object
Returns the value of attribute item_changefreq.
-
#item_tag ⇒ Object
Returns the value of attribute item_tag.
-
#label_generator ⇒ Object
Returns the value of attribute label_generator.
-
#option_namespace ⇒ Object
Returns the value of attribute option_namespace.
-
#schema_location ⇒ Object
Returns the value of attribute schema_location.
-
#wrapper_tag ⇒ Object
Returns the value of attribute wrapper_tag.
-
#xmlns ⇒ Object
Returns the value of attribute xmlns.
-
#xmlns_xsi ⇒ Object
Returns the value of attribute xmlns_xsi.
Attributes inherited from Base::Configuration
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#changefreq ⇒ Object
Returns the value of attribute changefreq.
8 9 10 |
# File 'lib/navigasmic/builders/map_builder.rb', line 8 def changefreq @changefreq end |
#group_tag ⇒ Object
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_changefreq ⇒ Object
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_tag ⇒ Object
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_generator ⇒ Object
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_namespace ⇒ Object
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_location ⇒ Object
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_tag ⇒ Object
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 |
#xmlns ⇒ Object
Returns the value of attribute xmlns.
7 8 9 |
# File 'lib/navigasmic/builders/map_builder.rb', line 7 def xmlns @xmlns end |
#xmlns_xsi ⇒ Object
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 |