Sha256: 27ad03284c8c000a48b07f4cfbace0ceaf2e8d4896d742b348442eae2acacd3f

Contents?: true

Size: 1.53 KB

Versions: 22

Compression:

Stored size: 1.53 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 Hit
        attr_reader ip: String
        attr_reader location: Mihari::Structs::Censys::Location
        attr_reader autonomous_system: Mihari::Structs::Censys::AutonomousSystem

        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

22 entries across 22 versions & 1 rubygems

Version Path
mihari-3.7.0 sig/lib/mihari/structs/censys.rbs
mihari-3.6.1 sig/lib/mihari/structs/censys.rbs