Class: EZDyn::CreateChange
Overview
A pending record creation.
Instance Method Summary collapse
-
#initialize(record:) ⇒ CreateChange
constructor
A new instance of CreateChange.
-
#to_s ⇒ String
Returns a string representation of the change.
Methods inherited from Change
Constructor Details
#initialize(record:) ⇒ CreateChange
Returns a new instance of CreateChange.
55 56 57 |
# File 'lib/ezdyn/changes.rb', line 55 def initialize(record:) @record = record end |
Instance Method Details
#to_s ⇒ String
Returns a string representation of the change.
62 63 64 |
# File 'lib/ezdyn/changes.rb', line 62 def to_s "CREATE #{@record.fqdn}. #{@record.ttl} #{@record.type} #{@record.value}" end |