Sha256: d4af58fccbe579115571b959ab6b8648ad6643a8b5a9ea8e2c98e8e9caf6c691

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require 'peddler/client'
require 'securerandom'

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

  class Client < ::Peddler::Client
    self.path = '/'

    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.marketplace = 'US'
    end

    self.parser = Parser
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
peddler-2.1.1 test/null_client.rb
peddler-2.1.0 test/null_client.rb
peddler-2.0.4 test/null_client.rb
peddler-2.0.3 test/null_client.rb
peddler-2.0.0 test/null_client.rb