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-8.0.4 lib/record_store/record/ns.rb
record_store-8.0.3 lib/record_store/record/ns.rb
record_store-8.0.2 lib/record_store/record/ns.rb
record_store-8.0.1 lib/record_store/record/ns.rb
record_store-8.0.0 lib/record_store/record/ns.rb
record_store-7.1.1 lib/record_store/record/ns.rb
record_store-7.1.0 lib/record_store/record/ns.rb
record_store-7.0.1 lib/record_store/record/ns.rb
record_store-7.0.0 lib/record_store/record/ns.rb
record_store-6.7.2 lib/record_store/record/ns.rb
record_store-6.7.1 lib/record_store/record/ns.rb
record_store-6.7.0 lib/record_store/record/ns.rb
record_store-6.6.0 lib/record_store/record/ns.rb
record_store-6.5.11 lib/record_store/record/ns.rb
record_store-6.5.10 lib/record_store/record/ns.rb
record_store-6.5.9 lib/record_store/record/ns.rb
record_store-6.5.8 lib/record_store/record/ns.rb
record_store-6.5.5 lib/record_store/record/ns.rb
record_store-6.5.4 lib/record_store/record/ns.rb
record_store-6.5.3 lib/record_store/record/ns.rb