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'
- API_VERSION =
TaxCloud API version.
'1.0'
- VERSION =
The version of the
tax_cloud
gem. '0.3.0'
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.
35 36 37 |
# File 'lib/tax_cloud.rb', line 35 def configuration @configuration end |
Class Method Details
.client ⇒ Object
The configured SOAP client to the TaxCloud service.
55 56 57 58 |
# File 'lib/tax_cloud.rb', line 55 def client check_configuration! @client ||= TaxCloud::Client.new end |
.configure {|configuration| ... } ⇒ Object
Configure the gem.
43 44 45 46 |
# File 'lib/tax_cloud.rb', line 43 def configure self.configuration ||= Configuration.new yield configuration end |
.configured? ⇒ Boolean
Returns true if the gem has been configured.
38 39 40 |
# File 'lib/tax_cloud.rb', line 38 def configured? !!configuration end |
.reset! ⇒ Object
Reset the current configuration.
49 50 51 52 |
# File 'lib/tax_cloud.rb', line 49 def reset! self.configuration = nil @client = nil end |