Sha256: c5f1d3ad60b1e42fb52c20eec8f213d5eefacb388e3baf43371ebb8bfd1a3c6f
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true module DnsMock module Record module Builder class Mx < DnsMock::Record::Builder::Base RECORD_PREFERENCE_STEP = 10 def build records_data.map.with_index(1) do |record_data, record_preference| target_factory.new( record_data: [ record_preference * DnsMock::Record::Builder::Mx::RECORD_PREFERENCE_STEP, record_data ] ).create end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems