Class: UHaul::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/uhaul/link.rb

Overview

A link in a sitemap.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loc:) ⇒ Link

Returns a new instance of Link.

Parameters:

  • loc (String)


11
12
13
# File 'lib/uhaul/link.rb', line 11

def initialize(loc:)
  @loc = loc
end

Instance Attribute Details

#locString

Returns:

  • (String)


8
9
10
# File 'lib/uhaul/link.rb', line 8

def loc
  @loc
end

Instance Method Details

#inspectString

Returns:

  • (String)


16
17
18
# File 'lib/uhaul/link.rb', line 16

def inspect
  "#<#{self.class.name} loc=#{@loc.inspect}>"
end