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
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 58 def client check_configuration! @client ||= TaxCloud::Client.new end
configure() { |configuration| ... }
click to toggle source
Configure the gem.
# File lib/tax_cloud.rb, line 46 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 41 def configured? configuration.present? end
reset!()
click to toggle source
Reset the current configuration.
# File lib/tax_cloud.rb, line 52 def reset! self.configuration = nil @client = nil end
Private Class Methods
check_configuration!()
click to toggle source
# File lib/tax_cloud.rb, line 65 def check_configuration! raise TaxCloud::Errors::MissingConfig.new unless self.configuration self.configuration.check! end