Resolv::DNS::Resource (Class)

In: resolv.rb
Parent: Query

Methods

==   decode_rdata   encode_rdata   eql?   get_class   hash  

Constants

ClassHash = {}
ClassValue = nil
  Standard (class generic) RRs
ClassInsensitiveTypes = [ NS, CNAME, SOA, PTR, HINFO, MINFO, MX, TXT, ANY

Public Class methods

[Source]

# File resolv.rb, line 1324
      def self.decode_rdata(msg)
        raise NotImplementedError.new
      end

[Source]

# File resolv.rb, line 1347
      def self.get_class(type_value, class_value)
        return ClassHash[[type_value, class_value]] ||
               Generic.create(type_value, class_value)
      end

Public Instance methods

[Source]

# File resolv.rb, line 1328
      def ==(other)
        return self.class == other.class &&
          self.instance_variables == other.instance_variables &&
          self.instance_variables.collect {|name| self.instance_eval name} ==
            other.instance_variables.collect {|name| other.instance_eval name}
      end

[Source]

# File resolv.rb, line 1320
      def encode_rdata(msg)
        raise NotImplementedError.new
      end

[Source]

# File resolv.rb, line 1335
      def eql?(other)
        return self == other
      end

[Source]

# File resolv.rb, line 1339
      def hash
        h = 0
        self.instance_variables.each {|name|
          h ^= self.instance_eval("#{name}.hash")
        }
        return h
      end

[Validate]