Class: RailsSitemap::ImageEntry
- Inherits:
-
Object
- Object
- RailsSitemap::ImageEntry
- Defined in:
- app/models/rails_sitemap/image_entry.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
readonly
Returns the value of attribute coordinates.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, title = nil, coordinates = nil, updated_at = RailsSitemap.updated_at) ⇒ ImageEntry
constructor
A new instance of ImageEntry.
Constructor Details
#initialize(url, title = nil, coordinates = nil, updated_at = RailsSitemap.updated_at) ⇒ ImageEntry
Returns a new instance of ImageEntry.
5 6 7 8 9 10 11 12 |
# File 'app/models/rails_sitemap/image_entry.rb', line 5 def initialize(url, title = nil, coordinates = nil, updated_at = RailsSitemap.updated_at) @url = url @title = title @coordinates = coordinates @updated_at = updated_at end |
Instance Attribute Details
#coordinates ⇒ Object (readonly)
Returns the value of attribute coordinates.
3 4 5 |
# File 'app/models/rails_sitemap/image_entry.rb', line 3 def coordinates @coordinates end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'app/models/rails_sitemap/image_entry.rb', line 3 def title @title end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
3 4 5 |
# File 'app/models/rails_sitemap/image_entry.rb', line 3 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'app/models/rails_sitemap/image_entry.rb', line 3 def url @url end |