Class: SitemapEntry
- Inherits:
-
Struct
- Object
- Struct
- SitemapEntry
- Defined in:
- app/models/sitemap_entry.rb
Instance Attribute Summary collapse
-
#changefreq ⇒ Object
Returns the value of attribute changefreq.
-
#lastmod ⇒ Object
Returns the value of attribute lastmod.
-
#path ⇒ Object
Returns the value of attribute path.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
Instance Attribute Details
#changefreq ⇒ Object
Returns the value of attribute changefreq
1 2 3 |
# File 'app/models/sitemap_entry.rb', line 1 def changefreq @changefreq end |
#lastmod ⇒ Object
Returns the value of attribute lastmod
1 2 3 |
# File 'app/models/sitemap_entry.rb', line 1 def lastmod @lastmod end |
#path ⇒ Object
Returns the value of attribute path
1 2 3 |
# File 'app/models/sitemap_entry.rb', line 1 def path @path end |
#priority ⇒ Object
Returns the value of attribute priority
1 2 3 |
# File 'app/models/sitemap_entry.rb', line 1 def priority @priority end |
Instance Method Details
#formatted_lastmod ⇒ Object
2 3 4 |
# File 'app/models/sitemap_entry.rb', line 2 def formatted_lastmod lastmod.strftime "%Y-%m-%d" end |