Class: DNS::QClass
Overview
– QCLASS fields appear in the question section of a query. QCLASS values are a superset of CLASS values; every CLASS is a valid QCLASS. In addition to CLASS values, the following QCLASSes are defined:
-
255 any class
++
Constant Summary collapse
- Values =
{ 254 => :NONE, 255 => :ANY }
Instance Attribute Summary
Attributes inherited from Class
Instance Method Summary collapse
-
#initialize(value) ⇒ QClass
constructor
A new instance of QClass.
- #to_s ⇒ Object
- #to_sym ⇒ Object
Methods inherited from Class
Constructor Details
#initialize(value) ⇒ QClass
38 39 40 |
# File 'lib/faildns/qclass.rb', line 38 def initialize (value) super(value) end |
Instance Method Details
#to_s ⇒ Object
46 47 48 |
# File 'lib/faildns/qclass.rb', line 46 def to_s (Values[@value] || Class::Values[@value]).to_s end |
#to_sym ⇒ Object
42 43 44 |
# File 'lib/faildns/qclass.rb', line 42 def to_sym Values[@value] || Class::Values[@value] end |