AsyncDNS-cr  Diff

Differences From Artifact [8a39ec595d]:

To Artifact [43e4044197]:


1
2
3
4
5
6
7
8
9
10



11
12
13
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15









-
+
+
+



require "./dns_class"
require "./rr_type"

module AsyncDNS
  class Query
    getter domain : String
    getter dns_class : DNSClass
    getter rr_type : RRType

    def initialize(@domain : String, @dns_class : DNSClass, @rr_type : RRType)
    def initialize(domain : String, @dns_class : DNSClass, @rr_type : RRType)
      domain += '.' unless domain.ends_with?('.')
      @domain = domain
    end
  end
end