Sha256: 1e71bb6374b19da018d8395ee165434a98ec4ecdde5efc5a6b1149602817aab7

Contents?: true

Size: 448 Bytes

Versions: 45

Compression:

Stored size: 448 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 rdata_txt
      nsdname
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
record_store-6.5.2 lib/record_store/record/ns.rb
record_store-6.5.1 lib/record_store/record/ns.rb
record_store-6.5.0 lib/record_store/record/ns.rb
record_store-6.4.1 lib/record_store/record/ns.rb
record_store-6.4.0 lib/record_store/record/ns.rb
record_store-6.3.1 lib/record_store/record/ns.rb
record_store-6.3.0 lib/record_store/record/ns.rb
record_store-6.2.1 lib/record_store/record/ns.rb
record_store-6.2.0 lib/record_store/record/ns.rb
record_store-6.1.2 lib/record_store/record/ns.rb
record_store-6.1.1 lib/record_store/record/ns.rb
record_store-6.1.0 lib/record_store/record/ns.rb
record_store-6.0.1 lib/record_store/record/ns.rb
record_store-6.0.0 lib/record_store/record/ns.rb
record_store-5.11.0 lib/record_store/record/ns.rb
record_store-5.10.0 lib/record_store/record/ns.rb
record_store-5.9.0 lib/record_store/record/ns.rb
record_store-5.8.0 lib/record_store/record/ns.rb
record_store-5.7.4 lib/record_store/record/ns.rb
record_store-5.7.3 lib/record_store/record/ns.rb