Class: RecordStore::Record::ALIAS
- Inherits:
-
RecordStore::Record
- Object
- RecordStore::Record
- RecordStore::Record::ALIAS
- Defined in:
- lib/record_store/record/alias.rb
Constant Summary
Constants inherited from RecordStore::Record
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
Attributes inherited from RecordStore::Record
Instance Method Summary collapse
-
#initialize(record) ⇒ ALIAS
constructor
A new instance of ALIAS.
- #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) ⇒ ALIAS
Returns a new instance of ALIAS.
7 8 9 10 |
# File 'lib/record_store/record/alias.rb', line 7 def initialize(record) super @alias = Record.ensure_ends_with_dot(record.fetch(:alias)) end |
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias.
3 4 5 |
# File 'lib/record_store/record/alias.rb', line 3 def alias @alias end |
Instance Method Details
#rdata ⇒ Object
12 13 14 |
# File 'lib/record_store/record/alias.rb', line 12 def rdata { alias: self.alias } end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/record_store/record/alias.rb', line 16 def to_s "[ALIASRecord] #{fqdn} #{ttl} IN ALIAS #{self.alias}" end |