Class: Ronin::DB::DNSRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::DNSRecord
- Includes:
- Model
- Defined in:
- lib/ronin/db/dns_record.rb
Overview
Represents a DNS record.
Instance Attribute Summary collapse
-
#dns_query ⇒ DNSQuery
The DNS query that the record belongs to.
-
#id ⇒ Integer
The primary ID for the DNS record.
-
#ttl ⇒ Integer
The Time-To-Live (TTL) for the DNS record.
-
#value ⇒ String
The value of the DNS record.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the DNS records into a String.
Methods included from Model
Instance Attribute Details
#dns_query ⇒ DNSQuery
The DNS query that the record belongs to.
61 |
# File 'lib/ronin/db/dns_record.rb', line 61 belongs_to :dns_query |
#id ⇒ Integer
The primary ID for the DNS record.
40 |
# File 'lib/ronin/db/dns_record.rb', line 40 attribute :id, :integer |
#ttl ⇒ Integer
The Time-To-Live (TTL) for the DNS record.
46 |
# File 'lib/ronin/db/dns_record.rb', line 46 attribute :ttl, :integer |
#value ⇒ String
The value of the DNS record.
53 |
# File 'lib/ronin/db/dns_record.rb', line 53 attribute :value, :string |
Instance Method Details
#to_s ⇒ String
Converts the DNS records into a String.
68 69 70 |
# File 'lib/ronin/db/dns_record.rb', line 68 def to_s value end |