Class: Ronin::DB::IPAddressMACAddress

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

Overview

Associates an IPAddress with a MACAddress.

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#created_atTime (readonly)

Tracks when an IP Address becomes associated with a MAC Address.

Returns:

  • (Time)


58
# File 'lib/ronin/db/ip_address_mac_address.rb', line 58

attribute :created_at, :datetime

#idInteger

The primary-key of the join model.

Returns:

  • (Integer)


38
# File 'lib/ronin/db/ip_address_mac_address.rb', line 38

attribute :id, :integer

#ip_addressIPAddress

The IP Address.

Returns:



44
45
# File 'lib/ronin/db/ip_address_mac_address.rb', line 44

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

#mac_addressMACAddress

The Mac Address.

Returns:



51
52
# File 'lib/ronin/db/ip_address_mac_address.rb', line 51

belongs_to :mac_address, required:   true,
class_name: 'MACAddress'