class DNS::Question
- DNS::Question
- Reference
- Object
Defined in:
dns/question.crConstructors
- .from_io(io : IO, format : IO::ByteFormat) : self
- .new(name : String, query_type : DNS::RecordType = RecordType::AAAA, query_class : DNS::RecordClass = RecordClass::Internet)
- .new(name : DNS::Name = Name.new, query_type : DNS::RecordType = RecordType::AAAA, query_class : DNS::RecordClass = RecordClass::Internet)
Instance Method Summary
- #name : Name
- #name=(name : Name)
- #query_class : RecordClass
- #query_class=(query_class : RecordClass)
- #query_type : RecordType
- #query_type=(query_type : RecordType)
- #to_io(io : IO, format : IO::ByteFormat)
Constructor Detail
def self.new(name : String, query_type : DNS::RecordType = RecordType::AAAA, query_class : DNS::RecordClass = RecordClass::Internet)
#
def self.new(name : DNS::Name = Name.new, query_type : DNS::RecordType = RecordType::AAAA, query_class : DNS::RecordClass = RecordClass::Internet)
#