Sha256: 5860fb4280470faf1804d0b0c2e30771d2f585cb49e49d4210c2d4bcf82f1966

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require "rubygems"
require "taq-sitemapper"

data = [{url: "One"  , lastmod: Time.now, freq: "monthly", priority: 1}, 
        {url: "Two"  , lastmod: Time.now, freq: "monthly", priority: 1}, 
        {url: "Three", lastmod: Time.now, freq: "monthly", priority: 1}]

sitemapper = Sitemapper::Sitemapper.new
sitemapper.loc  = :url
sitemapper.file = "/tmp/sitemap_class.xml"
sitemapper.write_sitemap(data.entries)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taq-sitemapper-0.0.4 doc/sitemapper_class.rb