Sha256: 786ab5447bfb45f9f0d59993249e7592d23e77c0a0e237bda1d139f528096e6d

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

require 'retryable'
require 'benchmark'
require 'go_puff/http/client'
require_relative 'prodcat_api/version'
require_relative 'prodcat_api/errors'
require_relative 'prodcat_api/configuration'
require_relative 'prodcat_api/fetch_products'
require_relative 'prodcat_api/fetch_product'
require_relative 'prodcat_api/structs'
require_relative 'prodcat_api/type_utility'
require_relative 'prodcat_api/product_hydration/look_up_by_barcode'

module GoPuff
  module ProdcatApi
    class << self
      attr_accessor :config

      def configure
        @config ||= Configuration.new

        yield config if block_given?
        config.validate!
        GoPuff::Http.config.logger = config.logger
        GoPuff::Http.config.user_agent_header = config.user_agent_header
        config
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
go_puff-prodcat_api-0.9.3.pre.beta.1 lib/go_puff/prodcat_api.rb