Class: RecordStore::Record::NS
- Inherits:
-
RecordStore::Record
- Object
- RecordStore::Record
- RecordStore::Record::NS
- Defined in:
- lib/record_store/record/ns.rb
Constant Summary
Constants inherited from RecordStore::Record
Instance Attribute Summary collapse
-
#nsdname ⇒ Object
Returns the value of attribute nsdname.
Attributes inherited from RecordStore::Record
Instance Method Summary collapse
-
#initialize(record) ⇒ NS
constructor
A new instance of NS.
- #rdata ⇒ Object
- #to_s ⇒ Object
Methods inherited from RecordStore::Record
#==, build_from_yaml_definition, ensure_ends_with_dot, #hash, #key, #log!, #to_hash, #to_json, #type
Constructor Details
#initialize(record) ⇒ NS
7 8 9 10 |
# File 'lib/record_store/record/ns.rb', line 7 def initialize(record) super @nsdname = Record.ensure_ends_with_dot(record.fetch(:nsdname)) end |
Instance Attribute Details
#nsdname ⇒ Object
Returns the value of attribute nsdname.
3 4 5 |
# File 'lib/record_store/record/ns.rb', line 3 def nsdname @nsdname end |
Instance Method Details
#rdata ⇒ Object
12 13 14 |
# File 'lib/record_store/record/ns.rb', line 12 def rdata { nsdname: nsdname } end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/record_store/record/ns.rb', line 16 def to_s "[NSRecord] #{fqdn} #{ttl} IN NS #{nsdname}" end |