class Aquanaut::PageNode

A page node represents an actual page in the specified domain.

Attributes

uri[R]

Public Class Methods

new(uri) click to toggle source
Calls superclass method Aquanaut::Node::new
# File lib/aquanaut/page_node.rb, line 11
def initialize(uri)
  @uri = uri
  super()
end

Public Instance Methods

display() click to toggle source

Display method used on the front-end for the sitemap in list format.

# File lib/aquanaut/page_node.rb, line 18
def display
  part = "#{@uri.path}#{@uri.query}#{@uri.fragment}"
  part = @uri.to_s if part.empty?
  return part
end