Class: Gobuster::Hostname
- Inherits:
-
Object
- Object
- Gobuster::Hostname
- Defined in:
- lib/gobuster/hostname.rb
Overview
Represents a hostname found by gobuster dns
.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The host name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Hostname
constructor
Initializes the hostname.
-
#to_s ⇒ String
(also: #to_str)
Converts the hostname to a String.
Constructor Details
#initialize(name) ⇒ Hostname
Initializes the hostname.
17 18 19 |
# File 'lib/gobuster/hostname.rb', line 17 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ String (readonly)
The host name.
10 11 12 |
# File 'lib/gobuster/hostname.rb', line 10 def name @name end |
Instance Method Details
#to_s ⇒ String Also known as: to_str
Converts the hostname to a String.
26 27 28 |
# File 'lib/gobuster/hostname.rb', line 26 def to_s @name end |