Method: Net::DNS::Question#initialize

Defined in:
lib/net/dns/question.rb

#initialize(name, type = Net::DNS::A, cls = Net::DNS::IN) ⇒ Question

If not specified, type and cls arguments defaults to Net::DNS::A and Net::DNS::IN respectively.



67
68
69
70
71
# File 'lib/net/dns/question.rb', line 67

def initialize(name, type = Net::DNS::A, cls = Net::DNS::IN)
  @qName = check_name name
  @qType = Net::DNS::RR::Types.new(type)
  @qClass = Net::DNS::RR::Classes.new(cls)
end