Class: Ronin::DB::HostNameIPAddress

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

Overview

Associates a HostName with an IPAddress.

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#created_atTime

Tracks when a IP Address is associated with a host name

Returns:

  • (Time)


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

attribute :created_at, :datetime

#host_nameHostName

The host name pointing to the IP Address

Returns:



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

belongs_to :host_name, required: true,
inverse_of: :host_name_ip_addresses

#idInteger

The primary-key of the join model.

Returns:

  • (Integer)


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

attribute :id, :integer

#ip_addressIPAddress

The associated IP address.

Returns:



53
54
55
# File 'lib/ronin/db/host_name_ip_address.rb', line 53

belongs_to :ip_address, required:   true,
inverse_of: :host_name_ip_addresses,
class_name: 'IPAddress'