Class: Gobuster::Hostname

Inherits:
Object
  • Object
show all
Defined in:
lib/gobuster/hostname.rb

Overview

Represents a hostname found by gobuster dns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Hostname

Initializes the hostname.

Parameters:

  • name (String)


17
18
19
# File 'lib/gobuster/hostname.rb', line 17

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameString (readonly)

The host name.

Returns:

  • (String)


10
11
12
# File 'lib/gobuster/hostname.rb', line 10

def name
  @name
end

Instance Method Details

#to_sString Also known as: to_str

Converts the hostname to a String.

Returns:

  • (String)


26
27
28
# File 'lib/gobuster/hostname.rb', line 26

def to_s
  @name
end