class Amass::Address

An address of a hostname.

@api public

Attributes

asn[R]

The ASN number.

@return [Integer]

cidr[R]

The CIDR mask.

@return [String]

desc[R]

The description of the address.

@return [String]

description[R]

The description of the address.

@return [String]

ip[R]

The IP v4 or v6 address.

@return [String]

Public Class Methods

new(ip: , cidr: , asn: , desc: ) click to toggle source

Initializes the address.

@param [String] ip

An IP v4 or v6 address.

@param [String] cidr

The IP address in CIDR format.

@param [Integer] asn

The ASN number for the IP address.

@param [String] desc

A description of the IP address.
# File lib/amass/address.rb, line 46
def initialize(ip: , cidr: , asn: , desc: )
  @ip   = ip
  @cidr = cidr
  @asn  = asn
  @desc = desc
end

Public Instance Methods

to_s() click to toggle source

Converts the address to a String.

@return [String]

The IP address.
# File lib/amass/address.rb, line 59
def to_s
  @ip
end