Sha256: 598f47622c3fe51d43886c5bf707e30cd650736d61ab78a4daef6d671c4d10df
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
module RecordStore class Record::ALIAS < Record attr_accessor :cname validates :cname, presence: true, format: { with: Record::CNAME_REGEX, message: 'is not a fully qualified domain name' } def initialize(record) super @cname = Record.ensure_ends_with_dot(record.fetch(:cname)) end def rdata { cname: cname } end def to_s "[ALIASRecord] #{fqdn} #{ttl} IN ALIAS #{cname}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
record_store-2.0.0 | lib/record_store/record/alias.rb |
record_store-1.0.0 | lib/record_store/record/alias.rb |