Class: SitemapEntry

Inherits:
Struct
  • Object
show all
Defined in:
app/models/sitemap_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changefreqObject

Returns the value of attribute changefreq

Returns:

  • (Object)

    the current value of changefreq



1
2
3
# File 'app/models/sitemap_entry.rb', line 1

def changefreq
  @changefreq
end

#lastmodObject

Returns the value of attribute lastmod

Returns:

  • (Object)

    the current value of lastmod



1
2
3
# File 'app/models/sitemap_entry.rb', line 1

def lastmod
  @lastmod
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



1
2
3
# File 'app/models/sitemap_entry.rb', line 1

def path
  @path
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



1
2
3
# File 'app/models/sitemap_entry.rb', line 1

def priority
  @priority
end

Instance Method Details

#formatted_lastmodObject



2
3
4
# File 'app/models/sitemap_entry.rb', line 2

def formatted_lastmod
  lastmod.strftime "%Y-%m-%d"
end