lib/mihari/structs/censys.rb in mihari-7.3.2 vs lib/mihari/structs/censys.rb in mihari-7.4.0
- old
+ new
@@ -46,12 +46,12 @@
# sometimes Censys overlooks country
# then set geolocation as nil
return nil if country.nil?
Mihari::Models::Geolocation.new(
- country: country,
- country_code: country_code
+ country:,
+ country_code:
)
end
class << self
#
@@ -124,13 +124,13 @@
# @return [Mihari::Models::Artifact]
#
def artifact
Models::Artifact.new(
data: ip,
- metadata: metadata,
+ metadata:,
autonomous_system: autonomous_system.as,
geolocation: location.geolocation,
- ports: ports
+ ports:
)
end
class << self
#