Class: DnsMadeEasy::Zone::Record

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/dnsmadeeasy/zone/record.rb

Overview

Provider-neutral DNS record value object.

Instance Method Summary collapse

Instance Method Details

#sort_keyObject



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/dnsmadeeasy/zone/record.rb', line 20

def sort_key
  [
    normalized_owner,
    type_order,
    type,
    priority || -1,
    weight || -1,
    port || -1,
    value,
    ttl
  ]
end