Module: AvataxClient

Extended by:
ActiveSupport::Autoload
Defined in:
lib/avatax_client.rb

Overview

Avalara Tax calculation service.

Defined Under Namespace

Modules: Errors, Request, Response, ReverseCoercion Classes: Configuration

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



19
20
21
# File 'lib/avatax_client.rb', line 19

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
# File 'lib/avatax_client.rb', line 23

def configure
  yield configuration
end

.resetObject

Resets the configuration back to a new instance. Should only be used in testing.



28
29
30
# File 'lib/avatax_client.rb', line 28

def reset
  @configuration = Configuration.new
end