Sha256: 88f248c8ae457b3a7816fb95fce37cfd82de8491affb6312bfdc1628c5a23555

Contents?: true

Size: 469 Bytes

Versions: 9

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module DnsMock
  module Record
    module Builder
      class Srv < DnsMock::Record::Builder::Base
        FACTORY_ARGS_ORDER = %i[priority weight port target].freeze

        def build
          records_data.map do |record_data|
            target_factory.new(
              record_data: record_data.values_at(*DnsMock::Record::Builder::Srv::FACTORY_ARGS_ORDER)
            ).create
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dns_mock-1.7.6 lib/dns_mock/record/builder/srv.rb
dns_mock-1.7.5 lib/dns_mock/record/builder/srv.rb
dns_mock-1.7.4 lib/dns_mock/record/builder/srv.rb
dns_mock-1.7.3 lib/dns_mock/record/builder/srv.rb
dns_mock-1.7.1 lib/dns_mock/record/builder/srv.rb
dns_mock-1.7.0 lib/dns_mock/record/builder/srv.rb
dns_mock-1.6.2 lib/dns_mock/record/builder/srv.rb
dns_mock-1.6.1 lib/dns_mock/record/builder/srv.rb
dns_mock-1.6.0 lib/dns_mock/record/builder/srv.rb