Class: Avalara::Configuration
- Inherits:
-
Object
- Object
- Avalara::Configuration
- Defined in:
- lib/avalara/configuration.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Public: Get the API endpoint used by the configuration.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#password ⇒ Object
Returns the value of attribute password.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#username ⇒ Object
Returns the value of attribute username.
-
#version ⇒ Object
Public: Get the API version.
Instance Attribute Details
#endpoint ⇒ Object
Public: Get the API endpoint used by the configuration. Unless explicitly set, the endpoint will default to the official production endpoint at ‘rest.avalara.net’.
If you want to set this to the test endpoint, use ‘development.avalara.net’
Returns the String for the API endpoint.
22 23 24 |
# File 'lib/avalara/configuration.rb', line 22 def endpoint @endpoint ||= 'https://rest.avalara.net' end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
8 9 10 |
# File 'lib/avalara/configuration.rb', line 8 def open_timeout @open_timeout end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/avalara/configuration.rb', line 9 def password @password end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
7 8 9 |
# File 'lib/avalara/configuration.rb', line 7 def read_timeout @read_timeout end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/avalara/configuration.rb', line 6 def timeout @timeout end |
#username ⇒ Object
Returns the value of attribute username.
10 11 12 |
# File 'lib/avalara/configuration.rb', line 10 def username @username end |
#version ⇒ Object
Public: Get the API version. Defaults to 1.0.
Returns the String for the API version.
31 32 33 |
# File 'lib/avalara/configuration.rb', line 31 def version @version ||= '1.0' end |