Class: AddressFinder::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



19
20
21
22
23
24
25
26
27
28
# File 'lib/addressfinder/configuration.rb', line 19

def initialize
  self.hostname = 'api.addressfinder.io'
  self.port = 443
  self.timeout = 10
  self.retries = 12
  self.retry_delay = 5
  self.default_country = 'nz'
  self.verification_version = 'v1'
  self.ca = "Ruby/#{AddressFinder::VERSION}"
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/addressfinder/configuration.rb', line 3

def api_key
  @api_key
end

#api_secretObject

Returns the value of attribute api_secret.



4
5
6
# File 'lib/addressfinder/configuration.rb', line 4

def api_secret
  @api_secret
end

#caObject

Returns the value of attribute ca.



17
18
19
# File 'lib/addressfinder/configuration.rb', line 17

def ca
  @ca
end

#default_countryObject

Returns the value of attribute default_country.



13
14
15
# File 'lib/addressfinder/configuration.rb', line 13

def default_country
  @default_country
end

#domainObject

Returns the value of attribute domain.



14
15
16
# File 'lib/addressfinder/configuration.rb', line 14

def domain
  @domain
end

#hostnameObject

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#proxy_hostObject

Returns the value of attribute proxy_host.



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

def proxy_host
  @proxy_host
end

#proxy_passwordObject

Returns the value of attribute proxy_password.



11
12
13
# File 'lib/addressfinder/configuration.rb', line 11

def proxy_password
  @proxy_password
end

#proxy_portObject

Returns the value of attribute proxy_port.



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

def proxy_port
  @proxy_port
end

#proxy_userObject

Returns the value of attribute proxy_user.



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

def proxy_user
  @proxy_user
end

#retriesObject

Returns the value of attribute retries.



15
16
17
# File 'lib/addressfinder/configuration.rb', line 15

def retries
  @retries
end

#retry_delayObject

Returns the value of attribute retry_delay.



16
17
18
# File 'lib/addressfinder/configuration.rb', line 16

def retry_delay
  @retry_delay
end

#timeoutObject

Returns the value of attribute timeout.



12
13
14
# File 'lib/addressfinder/configuration.rb', line 12

def timeout
  @timeout
end

#verification_versionObject

Returns the value of attribute verification_version.



5
6
7
# File 'lib/addressfinder/configuration.rb', line 5

def verification_version
  @verification_version
end