Sha256: d8b63e741486ce795ffb7225a3f491a3462078359cddf476b1061df1094e2eee

Contents?: true

Size: 666 Bytes

Versions: 10

Compression:

Stored size: 666 Bytes

Contents

module Mihari
  module Structs
    module GooglePublicDNS
      INT_TYPE_TO_TYPE: { 1 => "A", 2 => "NS", 5 => "CNAME", 16 => "TXT", 28 => "AAAA" }

      class Answer < Dry::Struct
			  attr_reader name: String
        attr_reader data: String
        attr_reader resource_type: String

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

      class Response < Dry::Struct
        attr_reader answers: Array[Mihari::Structs::GooglePublicDNS::Answer]

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.11.0 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.10.0 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.9.0 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.8.0 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.7.4 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.7.3 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.7.2 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.7.1 sig/lib/mihari/structs/google_public_dns.rbs
mihari-4.7.0 sig/lib/mihari/structs/google_public_dns.rbs