Class: Avalara::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/avalara/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#endpointObject

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_timeoutObject

Returns the value of attribute open_timeout.



8
9
10
# File 'lib/avalara/configuration.rb', line 8

def open_timeout
  @open_timeout
end

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/avalara/configuration.rb', line 9

def password
  @password
end

#read_timeoutObject

Returns the value of attribute read_timeout.



7
8
9
# File 'lib/avalara/configuration.rb', line 7

def read_timeout
  @read_timeout
end

#timeoutObject

Returns the value of attribute timeout.



6
7
8
# File 'lib/avalara/configuration.rb', line 6

def timeout
  @timeout
end

#usernameObject

Returns the value of attribute username.



10
11
12
# File 'lib/avalara/configuration.rb', line 10

def username
  @username
end

#versionObject

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