Class: Ronin::DB::DNSRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/dns_record.rb

Overview

Represents a DNS record.

Since:

  • 0.2.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

included

Instance Attribute Details

#dns_queryDNSQuery

The DNS query that the record belongs to.

Returns:



61
# File 'lib/ronin/db/dns_record.rb', line 61

belongs_to :dns_query

#idInteger

The primary ID for the DNS record.

Returns:

  • (Integer)


40
# File 'lib/ronin/db/dns_record.rb', line 40

attribute :id, :integer

#ttlInteger

The Time-To-Live (TTL) for the DNS record.

Returns:

  • (Integer)


46
# File 'lib/ronin/db/dns_record.rb', line 46

attribute :ttl, :integer

#valueString

The value of the DNS record.

Returns:

  • (String)


53
# File 'lib/ronin/db/dns_record.rb', line 53

attribute :value, :string

Instance Method Details

#to_sString

Converts the DNS records into a String.

Returns:

  • (String)

Since:

  • 0.2.0



68
69
70
# File 'lib/ronin/db/dns_record.rb', line 68

def to_s
  value
end