Sha256: 974e16abfda372f0dcf239fb379e880b07a7a13bb59bbbc444b84c14a7456e12

Contents?: true

Size: 568 Bytes

Versions: 54

Compression:

Stored size: 568 Bytes

Contents

require File.expand_path('../connection', __FILE__)
require File.expand_path('../request', __FILE__)

module AvaTax
  class API

    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    def initialize(options={})
      options = AvaTax.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end

    def config
      conf = {}
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        conf[key] = send key
      end
      conf
    end

    include Connection
    include Request
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
avatax-22.10.0 lib/avatax/api.rb
avatax-22.9.0 lib/avatax/api.rb
avatax-22.8.0 lib/avatax/api.rb
avatax-22.7.0 lib/avatax/api.rb
avatax-22.6.1 lib/avatax/api.rb
avatax-21.12.0 lib/avatax/api.rb
avatax-21.10.0 lib/avatax/api.rb
avatax-21.9.0 lib/avatax/api.rb
avatax-21.8.0 lib/avatax/api.rb
avatax-21.7.1 lib/avatax/api.rb
avatax-21.6.0 lib/avatax/api.rb
avatax-21.3.1 lib/avatax/api.rb
avatax-21.3.0 lib/avatax/api.rb
avatax-21.1.2 lib/avatax/api.rb
avatax-20.12.1 lib/avatax/api.rb
avatax-20.9.0 lib/avatax/api.rb
avatax-20.7.1 lib/avatax/api.rb
avatax-20.7.0 lib/avatax/api.rb
avatax-20.6.0 lib/avatax/api.rb
avatax-20.5.0 lib/avatax/api.rb