Module: TaxCloud
- Defined in:
- lib/tax_cloud.rb,
lib/tax_cloud/client.rb,
lib/tax_cloud/record.rb,
lib/tax_cloud/address.rb,
lib/tax_cloud/version.rb,
lib/tax_cloud/tax_code.rb,
lib/tax_cloud/cart_item.rb,
lib/tax_cloud/tax_codes.rb,
lib/tax_cloud/transaction.rb,
lib/tax_cloud/configuration.rb,
lib/tax_cloud/responses/base.rb,
lib/tax_cloud/responses/ping.rb,
lib/tax_cloud/tax_code_group.rb,
lib/tax_cloud/tax_code_groups.rb,
lib/tax_cloud/errors/api_error.rb,
lib/tax_cloud/responses/lookup.rb,
lib/tax_cloud/errors/soap_error.rb,
lib/tax_cloud/responses/generic.rb,
lib/tax_cloud/responses/captured.rb,
lib/tax_cloud/responses/returned.rb,
lib/tax_cloud/tax_code_constants.rb,
lib/tax_cloud/responses/cart_item.rb,
lib/tax_cloud/responses/tax_codes.rb,
lib/tax_cloud/responses/authorized.rb,
lib/tax_cloud/errors/tax_cloud_error.rb,
lib/tax_cloud/responses/verify_address.rb,
lib/tax_cloud/tax_code_group_constants.rb,
lib/tax_cloud/responses/tax_code_groups.rb,
lib/tax_cloud/errors/missing_config_error.rb,
lib/tax_cloud/responses/tax_codes_by_group.rb,
lib/tax_cloud/responses/authorized_with_capture.rb,
lib/tax_cloud/errors/missing_config_option_error.rb,
lib/tax_cloud/errors/unexpected_soap_response_error.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Errors, Responses Classes: Address, CartItem, Client, Configuration, Record, TaxCode, TaxCodeGroup, TaxCodes, Transaction
Constant Summary collapse
- WSDL_URL =
WSDL location for TaxCloud API.
'https://api.taxcloud.net/1.0/?wsdl'.freeze
- API_VERSION =
TaxCloud API version.
'1.0'.freeze
- VERSION =
The version of the
tax_cloudgem. '1.0.0'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
TaxCloud gem configuration.
Class Method Summary collapse
-
.client ⇒ Object
The configured SOAP client to the TaxCloud service.
-
.configure {|configuration| ... } ⇒ Object
Configure the gem.
-
.configured? ⇒ Boolean
Returns true if the gem has been configured.
-
.reset! ⇒ Object
Reset the current configuration.
Class Attribute Details
.configuration ⇒ Object
TaxCloud gem configuration.
38 39 40 |
# File 'lib/tax_cloud.rb', line 38 def configuration @configuration end |
Class Method Details
.client ⇒ Object
The configured SOAP client to the TaxCloud service.
58 59 60 61 |
# File 'lib/tax_cloud.rb', line 58 def client check_configuration! @client ||= TaxCloud::Client.new end |
.configure {|configuration| ... } ⇒ Object
Configure the gem.
46 47 48 49 |
# File 'lib/tax_cloud.rb', line 46 def configure self.configuration ||= Configuration.new yield configuration end |
.configured? ⇒ Boolean
Returns true if the gem has been configured.
41 42 43 |
# File 'lib/tax_cloud.rb', line 41 def configured? configuration.present? end |
.reset! ⇒ Object
Reset the current configuration.
52 53 54 55 |
# File 'lib/tax_cloud.rb', line 52 def reset! self.configuration = nil @client = nil end |