Class: EZDyn::DeleteChange
Overview
A pending record deletion.
Instance Method Summary collapse
-
#initialize(record:) ⇒ DeleteChange
constructor
A new instance of DeleteChange.
-
#to_s ⇒ String
Returns a string representation of the change.
Methods inherited from Change
Constructor Details
#initialize(record:) ⇒ DeleteChange
Returns a new instance of DeleteChange.
104 105 106 |
# File 'lib/ezdyn/changes.rb', line 104 def initialize(record:) @record = record.sync! end |
Instance Method Details
#to_s ⇒ String
Returns a string representation of the change.
111 112 113 |
# File 'lib/ezdyn/changes.rb', line 111 def to_s "DELETE #{@record.fqdn}. #{@record.ttl} #{@record.type} #{@record.value}" end |