Sha256: e751674bc367b907c27b8f410baee3bc8866fd3dbc7678af5c35beab2fee1994

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

require 'censys/search/result'
require 'censys/document/has_location'

module Censys
  module Search
    class IPv4 < Result
      include Censys::Document::HasLocation

      def ip
        @attributes['ip']
      end

      def protocols
        @attributes['protocols']
      end

      alias to_s ip
      alias to_str ip
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
censu-0.1.6 lib/censys/search/ipv4.rb
censu-0.1.5 lib/censys/search/ipv4.rb