Class: RecordStore::Record::TXT
- Inherits:
-
RecordStore::Record
- Object
- RecordStore::Record
- RecordStore::Record::TXT
- Defined in:
- lib/record_store/record/txt.rb
Constant Summary
Constants inherited from RecordStore::Record
Instance Attribute Summary collapse
-
#txtdata ⇒ Object
Returns the value of attribute txtdata.
Attributes inherited from RecordStore::Record
Instance Method Summary collapse
-
#initialize(record) ⇒ TXT
constructor
A new instance of TXT.
- #rdata ⇒ Object
- #rdata_txt ⇒ Object
- #to_s ⇒ Object
Methods inherited from RecordStore::Record
#==, build_from_yaml_definition, #hash, #key, #log!, #to_hash, #to_json, #type
Constructor Details
#initialize(record) ⇒ TXT
Returns a new instance of TXT.
8 9 10 11 |
# File 'lib/record_store/record/txt.rb', line 8 def initialize(record) super @txtdata = record.fetch(:txtdata) end |
Instance Attribute Details
#txtdata ⇒ Object
Returns the value of attribute txtdata.
3 4 5 |
# File 'lib/record_store/record/txt.rb', line 3 def txtdata @txtdata end |
Instance Method Details
#rdata ⇒ Object
17 18 19 |
# File 'lib/record_store/record/txt.rb', line 17 def rdata { txtdata: txtdata } end |
#rdata_txt ⇒ Object
21 22 23 |
# File 'lib/record_store/record/txt.rb', line 21 def rdata_txt txtdata end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/record_store/record/txt.rb', line 13 def to_s "[TXTRecord] #{fqdn} #{ttl} IN TXT \"#{rdata_txt}\"" end |