Skip to content

Commit

Permalink
Added Service#ip_addresses has_many through association (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed May 3, 2023
1 parent dee8b4a commit d5f4149
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ronin/db/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ class Service < ActiveRecord::Base
# @return [Array<OpenPort>]
has_many :open_ports

# @!attribute [rw] ip_addresses
# The IP Addresses that that run this service.
#
# @return [Array<IPAddress>]
#
# @since 0.2.0
has_many :ip_addresses, through: :open_ports

#
# Looks up the service.
#
Expand Down

0 comments on commit d5f4149

Please sign in to comment.