Class: Dnsruby::ZoneTransfer::Delta
- Inherits:
-
Object
- Object
- Dnsruby::ZoneTransfer::Delta
- Defined in:
- lib/dnsruby/zone_transfer.rb
Overview
All changes between two versions of a zone in an IXFR response.
Instance Attribute Summary collapse
-
#adds ⇒ Object
A list of records added between the start and end versions.
-
#deletes ⇒ Object
A list of records deleted between the start and end versions.
-
#end ⇒ Object
The ending serial number of this delta.
-
#start ⇒ Object
The starting serial number of this delta.
Instance Method Summary collapse
-
#initialize ⇒ Delta
constructor
A new instance of Delta.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Delta
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
#adds ⇒ Object
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 |
#deletes ⇒ Object
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 |
#end ⇒ Object
The ending serial number of this delta.
206 207 208 |
# File 'lib/dnsruby/zone_transfer.rb', line 206 def end @end end |
#start ⇒ Object
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_s ⇒ Object
219 220 221 222 |
# File 'lib/dnsruby/zone_transfer.rb', line 219 def to_s ret = "Adds : " + @adds.join(",") ret +=", Deletes : " + @deletes.join(",") end |