Sha256: d7c5935cc343d89a267b669bd4a541dd731ffbc86686a8e9ca8eadaf514f07cd

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

module AddressFinder
  class Bulk
    def initialize(http:, &block)
      @block = block
      @http_config = http
    end

    def perform
      http_config.start do |http|
        block.call ClientProxy.new(http: http)
      end
    end

    private

    attr_reader :block, :http_config

    class ClientProxy
      def initialize(http:)
        @http = http
      end

      def cleanse(args={})
        AddressFinder::Verification.new(args.merge(http: http)).perform.result
      end

      def verification(args={})
        AddressFinder::Verification.new(args.merge(http: http)).perform.result
      end

      private

      attr_reader :http
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
addressfinder-1.7.1 lib/addressfinder/bulk.rb