Class: DnsMadeEasy::Zone::PlanAction

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

Overview

A single proposed zone-management action.

Constant Summary collapse

ACTION_TYPES =
%w[create update skipped_delete ambiguous].freeze

Instance Method Summary collapse

Instance Method Details

#sort_keyObject



21
22
23
24
25
26
# File 'lib/dnsmadeeasy/zone/plan_action.rb', line 21

def sort_key
  [
    ACTION_TYPES.index(action),
    (record || desired_record || remote_record)&.sort_key || []
  ]
end