Sha256: 662b838841c4264663bfd39e3de9d01fa516e0473b835b31c1f3bf0d6c561858

Contents?: true

Size: 1.83 KB

Versions: 15

Compression:

Stored size: 1.83 KB

Contents

module Mihari
  module Structs
    module Censys
      class AutonomousSystem
        attr_reader asn: Integer

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::AutonomousSystem
      end

      class Location
        attr_reader country: String
        attr_reader country_code: String

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Location
      end

      class Service
        attr_reader port: Integer

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Service
      end

      class Hit
        attr_reader ip: String
        attr_reader location: Mihari::Structs::Censys::Location
        attr_reader autonomous_system: Mihari::Structs::Censys::AutonomousSystem
        attr_reader metadata: Hash[(String | Symbol), untyped]
        attr_reader services: Array[Mihari::Structs::Censys::Service]

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Hit
      end

      class Links
        attr_reader next: String
        attr_reader prev: String

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Links
      end

      class Result
        attr_reader query: String
        attr_reader total: Integer
        attr_reader hits: Array[Mihari::Structs::Censys::Hit]
        attr_reader links: Mihari::Structs::Censys::Links

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Result
      end

      class Response
        attr_reader code: Integer
        attr_reader status: String
        attr_reader result: Mihari::Structs::Censys::Result

        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Censys::Response
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/structs/censys.rbs
mihari-4.11.0 sig/lib/mihari/structs/censys.rbs
mihari-4.10.0 sig/lib/mihari/structs/censys.rbs
mihari-4.9.0 sig/lib/mihari/structs/censys.rbs
mihari-4.8.0 sig/lib/mihari/structs/censys.rbs
mihari-4.7.4 sig/lib/mihari/structs/censys.rbs
mihari-4.7.3 sig/lib/mihari/structs/censys.rbs
mihari-4.7.2 sig/lib/mihari/structs/censys.rbs
mihari-4.7.1 sig/lib/mihari/structs/censys.rbs
mihari-4.7.0 sig/lib/mihari/structs/censys.rbs
mihari-4.6.1 sig/lib/mihari/structs/censys.rbs
mihari-4.6.0 sig/lib/mihari/structs/censys.rbs
mihari-4.5.3 sig/lib/mihari/structs/censys.rbs
mihari-4.5.2 sig/lib/mihari/structs/censys.rbs
mihari-4.5.1 sig/lib/mihari/structs/censys.rbs