lib/mihari/structs/onyphe.rb in mihari-7.3.2 vs lib/mihari/structs/onyphe.rb in mihari-7.4.0
- old
+ new
@@ -27,13 +27,13 @@
# @return [Mihari::Models::Artifact]
#
def artifact
Mihari::Models::Artifact.new(
data: ip,
- metadata: metadata,
+ metadata:,
autonomous_system: as,
- geolocation: geolocation
+ geolocation:
)
end
#
# @return [Mihari::Geolocation, nil]
@@ -41,10 +41,10 @@
def geolocation
return nil if country_code.nil?
Mihari::Models::Geolocation.new(
country: NormalizeCountry(country_code, to: :short),
- country_code: country_code
+ country_code:
)
end
#
# @return [Mihari::AutonomousSystem]