lib/ipligence/utils.rb in ipligence-0.0.7 vs lib/ipligence/utils.rb in ipligence-0.1.1

- old
+ new

@@ -1,5 +1,5 @@ -module Ipligence::Utils +module IPligence::Utils def self.convert_dotted_to_long(ip) dotted_ip_array = ip.split(".").map(&:to_i) (dotted_ip_array[0] * 256 * 256 * 256) + (dotted_ip_array[1] * 256 * 256) + (dotted_ip_array[2] * 256) + (dotted_ip_array[3]) end \ No newline at end of file