Class: DnsMadeEasy::Zone::RecordSet

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/dnsmadeeasy/zone/record_set.rb

Overview

Deterministically ordered collection of zone records.

Instance Method Summary collapse

Instance Method Details

#include?(record) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/dnsmadeeasy/zone/record_set.rb', line 18

def include?(record)
  records.include?(record)
end

#sortedObject



14
15
16
# File 'lib/dnsmadeeasy/zone/record_set.rb', line 14

def sorted
  records.sort_by(&:sort_key)
end