Sha256: f0fd3afbf0122e835ed768aa25c65755180e45751392e2869fe515c6ec2e8b6f

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 Bytes

Contents

module Mihari
  module Structs
    module Shodan
      class Location
        attr_reader country_code: String
        attr_reader country_name: String

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

      class Match
        attr_reader asn: String?
        attr_reader hostnames: Array[String]
        attr_reader location: Mihari::Structs::Shodan::Location
        attr_reader domains: Array[String]
        attr_reader ip_str: String
        def self.from_dynamic!: (Hash[(String | Symbol), untyped] d) -> Mihari::Structs::Shodan::Match
      end

      class Result
        attr_reader matches: Array[Mihari::Structs::Shodan::Match]
        attr_reader total: Integer

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mihari-3.10.0 sig/lib/mihari/structs/shodan.rbs