class PhisherPhinder::ExtendedIp

Attributes

geoip_ip_data[R]
ip_address[R]

Public Class Methods

new(ip_address:, geoip_ip_data:) click to toggle source
# File lib/phisher_phinder/extended_ip.rb, line 7
def initialize(ip_address:, geoip_ip_data:)
  @ip_address = ip_address
  @geoip_ip_data = geoip_ip_data
end

Public Instance Methods

==(other) click to toggle source
# File lib/phisher_phinder/extended_ip.rb, line 12
def ==(other)
  other.instance_of?(self.class) && ip_address == other.ip_address && geoip_ip_data == other.geoip_ip_data
end
to_s() click to toggle source
# File lib/phisher_phinder/extended_ip.rb, line 16
def to_s
  @ip_address.to_s
end