module TaxCloud

TaxCloud is a web service to calculate and track sales tax for your ecommerce platform. Integration is easy to use. For information on configuring and using the TaxCloud API, look at the README file.

Constants

API_VERSION

TaxCloud API version.

WSDL_URL

WSDL location for TaxCloud API.

Attributes

configuration[RW]

TaxCloud gem configuration.

Public Class Methods

client() click to toggle source

The configured SOAP client to the TaxCloud service.

# File lib/tax_cloud.rb, line 59
def client
  check_configuration!
  @client ||= TaxCloud::Client.new
end
configure() { |configuration| ... } click to toggle source

Configure the gem.

# File lib/tax_cloud.rb, line 47
def configure
  self.configuration ||= Configuration.new
  yield configuration
end
configured?() click to toggle source

Returns true if the gem has been configured.

# File lib/tax_cloud.rb, line 42
def configured?
  configuration.present?
end
reset!() click to toggle source

Reset the current configuration.

# File lib/tax_cloud.rb, line 53
def reset!
  self.configuration = nil
  @client = nil
end

Private Class Methods

check_configuration!() click to toggle source
# File lib/tax_cloud.rb, line 66
def check_configuration!
  raise TaxCloud::Errors::MissingConfig unless self.configuration

  self.configuration.check!
end