Sha256: fee51b99e5929d1ac728c4695a49ae66eaa6f5f42a17390ee4d499b358a0b6fc

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

require 'peddler/client'
require 'securerandom'

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

4 entries across 4 versions & 1 rubygems

Version Path
peddler-1.6.3 test/null_client.rb
peddler-1.6.2 test/null_client.rb
peddler-1.6.1 test/null_client.rb
peddler-1.6.0 test/null_client.rb