module SM

Constants

VERSION

Public Class Methods

find_by_address(_address) click to toggle source
# File lib/seventeen_mon.rb, line 14
def self.find_by_address(_address)
  prot, addr = _address.split("://")
  IP.new(address: addr, protocol: prot).find
end
find_by_ip(_ip) click to toggle source
# File lib/seventeen_mon.rb, line 10
def self.find_by_ip(_ip)
  IP.new(ip: _ip).find
end