module Censys::Document::HasServices
Public Instance Methods
ports()
click to toggle source
Open ports.
@return [Hash{String => Hash}]
# File lib/censys/document/has_services.rb, line 11 def ports @ports ||= Hash[@attributes.select { |key, _| key =~ /\A\d+\z/ }] end
protocols()
click to toggle source
@return [Array<String>]
# File lib/censys/document/has_services.rb, line 18 def protocols @attributes['protocols'] end