Sha256: 44256f146601a038051fa01b82975f5937bf7646b28b71d0abc69374fa4f9d0c

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/inflector'
require 'active_support/core_ext/object'

require 'go_puff/tax_service/tax'
require 'go_puff/tax_service/errors'
require 'go_puff/tax_service/configuration'

require 'go_puff/tax_service/actions/get'
require 'go_puff/tax_service/actions/commit'
require 'go_puff/tax_service/actions/cancel'

require 'go_puff/http/client'

module GoPuff
  module TaxService
    class << self
      attr_accessor :configuration
    end

    def self.configure
      self.configuration ||= Configuration.new

      yield configuration if block_given?

      GoPuff::Http.config.logger = configuration.logger
      GoPuff::Http.config.user_agent_header = configuration.user_agent_header
      GoPuff::Http.config.adapter = :net_http_persistent
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
go_puff-tax_service-1.5.0 lib/go_puff/tax_service.rb