Sha256: 16739b949c640304b2d96eb782bd55f9c69b19e3ccc30cfed87ce8bbb5b1f4e9
Contents?: true
Size: 451 Bytes
Versions: 16
Compression:
Stored size: 451 Bytes
Contents
module RecordStore class Record::NS < Record attr_accessor :nsdname validates :nsdname, presence: true, format: { with: Record::FQDN_REGEX, message: 'is not a fully qualified domain name' } def initialize(record) super @nsdname = Record.ensure_ends_with_dot(record.fetch(:nsdname)) end def rdata { nsdname: nsdname } end def to_s "[NSRecord] #{fqdn} #{ttl} IN NS #{nsdname}" end end end
Version data entries
16 entries across 16 versions & 1 rubygems