Sha256: 4e6f0f5be3b75ceb57b6f524f067e4741141cfe9ba64391a25e346d74c17766a
Contents?: true
Size: 370 Bytes
Versions: 11
Compression:
Stored size: 370 Bytes
Contents
module Mihari module Mixins module AutonomousSystem # # Normalize ASN value # # @param [String, Integer] asn # # @return [Integer] # def normalize_asn(asn) return asn if asn.is_a?(Integer) return asn.to_i unless asn.start_with?("AS") asn.delete_prefix("AS").to_i end end end end
Version data entries
11 entries across 11 versions & 1 rubygems