Sha256: 3eb135dd1badd7cd0e9f0bd52ef32a2ba7bea7602a510c56f5dd2cb9c7825b91

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

module Gobuster
  #
  # Represents a hostname found by `gobuster dns`.
  #
  class Hostname

    # The host name.
    #
    # @return [String]
    attr_reader :name

    #
    # Initializes the hostname.
    #
    # @param [String] name
    #
    def initialize(name)
      @name = name
    end

    #
    # Converts the hostname to a String.
    #
    # @return [String]
    #
    def to_s
      @name
    end

    alias to_str to_s

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-gobuster-0.1.0 lib/gobuster/hostname.rb