Class: EZDyn::CreateChange

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

Overview

A pending record creation.

Instance Method Summary collapse

Methods inherited from Change

#zone

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_sString

Returns a string representation of the change.

Returns:

  • (String)

    A string representation of this change.



62
63
64
# File 'lib/ezdyn/changes.rb', line 62

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