Class: RailsSitemap::ImageEntry

Inherits:
Object
  • Object
show all
Defined in:
app/models/rails_sitemap/image_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#coordinatesObject (readonly)

Returns the value of attribute coordinates.



3
4
5
# File 'app/models/rails_sitemap/image_entry.rb', line 3

def coordinates
  @coordinates
end

#titleObject (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_atObject (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

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'app/models/rails_sitemap/image_entry.rb', line 3

def url
  @url
end