Sha256: 69d05149fbed83707d3b0fed4a000ceb1f7ba427982a3ddc0c58f8d4c5dc1720

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

module Mihari
  module Structs
    module GreyNoise
      class Metadata < Dry::Struct
        attr_reader country: String
        attr_reader country_code: String
        attr_reader asn: String

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

      class Datum < Dry::Struct
        attr_reader ip: String
        attr_reader metadata: Mihari::Structs::GreyNoise::Metadata

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

      class Response < Dry::Struct
        attr_reader complete: Boolean
        attr_reader count: Integer
        attr_reader data: Array[Mihari::Structs::GreyNoise::Danum]
        attr_reader message: String
        attr_reader query: String

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mihari-3.10.1 sig/lib/mihari/structs/greynoise.rbs
mihari-3.10.0 sig/lib/mihari/structs/greynoise.rbs