Class: Dnsruby::ZoneTransfer::Delta

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsruby/zone_transfer.rb

Overview

All changes between two versions of a zone in an IXFR response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDelta

Returns a new instance of Delta.



214
215
216
217
# File 'lib/dnsruby/zone_transfer.rb', line 214

def initialize()
  @adds = []
  @deletes = []
end

Instance Attribute Details

#addsObject

A list of records added between the start and end versions



209
210
211
# File 'lib/dnsruby/zone_transfer.rb', line 209

def adds
  @adds
end

#deletesObject

A list of records deleted between the start and end versions



212
213
214
# File 'lib/dnsruby/zone_transfer.rb', line 212

def deletes
  @deletes
end

#endObject

The ending serial number of this delta.



206
207
208
# File 'lib/dnsruby/zone_transfer.rb', line 206

def end
  @end
end

#startObject

The starting serial number of this delta.



203
204
205
# File 'lib/dnsruby/zone_transfer.rb', line 203

def start
  @start
end

Instance Method Details

#to_sObject



219
220
221
222
# File 'lib/dnsruby/zone_transfer.rb', line 219

def to_s
  ret = "Adds : " + @adds.join(",")
  ret +=", Deletes : " + @deletes.join(",")
end