Module: XmlSitemap

Defined in:
lib/xml-sitemap.rb,
lib/xml-sitemap/map.rb,
lib/xml-sitemap/item.rb,
lib/xml-sitemap/index.rb,
lib/xml-sitemap/options.rb,
lib/xml-sitemap/version.rb,
lib/xml-sitemap/render_engine.rb

Defined Under Namespace

Modules: RenderEngine Classes: Index, Item, Map

Constant Summary collapse

PERIODS =
[
  :none,
  :always,
  :hourly,
  :daily,
  :weekly,
  :monthly,
  :yearly,
  :never
].freeze
MAP_SCHEMA_OPTIONS =
{
  'xsi:schemaLocation' => "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd",
  'xmlns:xsi'          => "http://www.w3.org/2001/XMLSchema-instance",
  'xmlns:image'        => "http://www.google.com/schemas/sitemap-image/1.1",
  'xmlns:video'        => "http://www.google.com/schemas/sitemap-video/1.1",
  'xmlns'              => "http://www.sitemaps.org/schemas/sitemap/0.9"
}.freeze
INDEX_SCHEMA_OPTIONS =
{
  'xsi:schemaLocation' => "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd",
  'xmlns:xsi'          => "http://www.w3.org/2001/XMLSchema-instance",
  'xmlns'              => "http://www.sitemaps.org/schemas/sitemap/0.9"
}.freeze
VERSION =
"1.3.3"

Class Method Summary collapse

Class Method Details

.index(options = {}) ⇒ Object

Shortcut to XmlSitemap::Index.new

options - Index options


35
36
37
# File 'lib/xml-sitemap.rb', line 35

def index(options={})
  XmlSitemap::Index.new(options)
end

.map(domain, options = {}) ⇒ Object Also known as: new

Shortcut to XmlSitemap::Map.new

domain - Primary domain options - Map options


25
26
27
# File 'lib/xml-sitemap.rb', line 25

def map(domain, options={})
  XmlSitemap::Map.new(domain, options) 
end

.versionObject


6
7
8
# File 'lib/xml-sitemap/version.rb', line 6

def self.version
  XmlSitemap::VERSION
end