Class: DNS::ResourceRecord::IN::NULL

Inherits:
Data
  • Object
show all
Defined in:
lib/faildns/resourcerecord/IN/NULL.rb

Overview

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/                  <anything>                   /
/                                               /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

Anything at all may be in the RDATA field so long as it is 65535 octets or less.

NULL records cause no additional section processing. NULL RRs are not allowed in master files. NULLs are used as placeholders in some experimental extensions of the DNS. ++

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Data

parse

Constructor Details

#initialize(raw) ⇒ NULL

Returns a new instance of NULL.



49
50
51
# File 'lib/faildns/resourcerecord/IN/NULL.rb', line 49

def initialize (raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



47
48
49
# File 'lib/faildns/resourcerecord/IN/NULL.rb', line 47

def raw
  @raw
end

Class Method Details

._parse(string, original) ⇒ Object



43
44
45
# File 'lib/faildns/resourcerecord/IN/NULL.rb', line 43

def self._parse (string, original)
  NULL.new(string)
end

Instance Method Details

#packObject



53
54
55
# File 'lib/faildns/resourcerecord/IN/NULL.rb', line 53

def pack
  @raw
end

#to_sObject



57
58
59
# File 'lib/faildns/resourcerecord/IN/NULL.rb', line 57

def to_s
  @raw
end