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

Version Path
record_store-4.0.7 lib/record_store/record/ns.rb
record_store-4.0.6 lib/record_store/record/ns.rb
record_store-4.0.5 lib/record_store/record/ns.rb
record_store-4.0.4 lib/record_store/record/ns.rb
record_store-4.0.3 lib/record_store/record/ns.rb
record_store-4.0.2 lib/record_store/record/ns.rb
record_store-4.0.1 lib/record_store/record/ns.rb
record_store-4.0.0 lib/record_store/record/ns.rb
record_store-3.1.4 lib/record_store/record/ns.rb
record_store-3.1.3 lib/record_store/record/ns.rb
record_store-3.1.1 lib/record_store/record/ns.rb
record_store-3.1.0 lib/record_store/record/ns.rb
record_store-3.0.0 lib/record_store/record/ns.rb
record_store-2.1.0 lib/record_store/record/ns.rb
record_store-2.0.0 lib/record_store/record/ns.rb
record_store-1.0.0 lib/record_store/record/ns.rb