Class: NSAStorage::Link
- Inherits:
-
Object
- Object
- NSAStorage::Link
- Defined in:
- lib/nsastorage/link.rb
Overview
A link in a sitemap.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(loc:, lastmod:) ⇒ Link
constructor
A new instance of Link.
- #inspect ⇒ String
Constructor Details
#initialize(loc:, lastmod:) ⇒ Link
Returns a new instance of Link.
16 17 18 19 |
# File 'lib/nsastorage/link.rb', line 16 def initialize(loc:, lastmod:) @loc = loc @lastmod = Time.parse(lastmod) end |
Instance Attribute Details
#lastmod ⇒ Time
12 13 14 |
# File 'lib/nsastorage/link.rb', line 12 def lastmod @lastmod end |
#loc ⇒ String
8 9 10 |
# File 'lib/nsastorage/link.rb', line 8 def loc @loc end |
Instance Method Details
#inspect ⇒ String
22 23 24 |
# File 'lib/nsastorage/link.rb', line 22 def inspect "#<#{self.class.name} loc=#{@loc.inspect} lastmod=#{@lastmod.inspect}>" end |