class UnseenConnectionsMonitor::FirewallWarning

Attributes

from[R]
port[R]
protocol[R]
to[R]

Public Class Methods

new(from:, to:, protocol:, port:) click to toggle source
Calls superclass method
# File lib/unseen_connections_monitor.rb, line 13
def initialize(from:, to:, protocol:, port:)
  super("unseen #{protocol} connection from #{from} to #{to}:#{port}")
  @from, @to, @protocol, @port = from, to, protocol, port
end

Public Instance Methods

==(other) click to toggle source
# File lib/unseen_connections_monitor.rb, line 22
def ==(other)
  message == other.message
end
Also aliased as: eq?
eq?(other)
Alias for: ==
params() click to toggle source
# File lib/unseen_connections_monitor.rb, line 18
def params
  IdentifyUtil.ip_protocol_port(to, protocol, port).merge(from: from)
end