Sha256: 2eba774c3181b5f6217333e063ff522976ed1d7bb3feb53b14cd96f91adc5bdd

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

require 'peddler/client'
require 'securerandom'

::Peddler::VCRMatcher.ignore_seller!

module Null
  class Client < ::Peddler::Client
    def configure_with_mock_data!
      self.aws_access_key_id = SecureRandom.hex
      self.aws_secret_access_key = SecureRandom.hex
      self.merchant_id = SecureRandom.hex
      self.primary_marketplace_id = 'ATVPDKIKX0DER'
    end
  end

  module Parser
    def self.new(res, *)
      res
    end
  end

  Client.parser = Parser
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
peddler-1.5.0 test/null_client.rb
peddler-1.4.1 test/null_client.rb
peddler-1.4.0 test/null_client.rb
peddler-1.3.0 test/null_client.rb
peddler-1.2.0 test/null_client.rb