Module: Mihari::Concerns::AutonomousSystemNormalizable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Structs::Censys::AutonomousSystem, Structs::GreyNoise::Metadata, Structs::Onyphe::Result, Structs::Shodan::Match
- Defined in:
- lib/mihari/concerns/autonomous_system_normalizable.rb
Overview
Autonomous System concern
Instance Method Summary collapse
-
#normalize_asn(asn) ⇒ Integer
Normalize ASN value.
Instance Method Details
#normalize_asn(asn) ⇒ Integer
Normalize ASN value
18 19 20 |
# File 'lib/mihari/concerns/autonomous_system_normalizable.rb', line 18 def normalize_asn(asn) asn.to_s.delete_prefix("AS").to_i end |