Class: EZDyn::DeleteChange

Inherits:
Change
  • Object
show all
Defined in:
lib/ezdyn/changes.rb

Overview

A pending record deletion.

Instance Method Summary collapse

Methods inherited from Change

#zone

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_sString

Returns a string representation of the change.

Returns:

  • (String)

    A string representation of this change.



111
112
113
# File 'lib/ezdyn/changes.rb', line 111

def to_s
  "DELETE #{@record.fqdn}.   #{@record.ttl} #{@record.type}   #{@record.value}"
end