Sha256: 04bc9b372a6a5dc13b768a8c61da7f270f91b8622d3a564a0e6dbad451d361f9

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

require File.expand_path('../avatax/configuration', __FILE__)
require File.expand_path('../avatax/api', __FILE__)
require File.expand_path('../avatax/client', __FILE__)

module AvaTax
  extend Configuration

  # Alias for Avatax::Client.new
  #
  # @return [Avatax::Client]
  def self.client(options={})
    AvaTax::Client.new(options)
  end

  # Delegate to AvaTax::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end

  # Delegate to AvaTax::Client
  def self.respond_to?(method, include_all=false)
    return client.respond_to?(method, include_all) || super
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avatax-22.5.0 lib/avatax.rb
avatax-22.3.0 lib/avatax.rb
avatax-22.2.1 lib/avatax.rb
avatax-22.2.0 lib/avatax.rb