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.



17
18
19
20
21
22
23
24
# File 'lib/addressfinder/configuration.rb', line 17

def initialize
  self.hostname = 'api.addressfinder.io'
  self.port = 443
  self.timeout = 10
  self.retries = 12
  self.retry_delay = 5
  self.default_country = 'nz'
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

#default_countryObject

Returns the value of attribute default_country.



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

def default_country
  @default_country
end

#domainObject

Returns the value of attribute domain.



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

def domain
  @domain
end

#hostnameObject

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#proxy_hostObject

Returns the value of attribute proxy_host.



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

def proxy_host
  @proxy_host
end

#proxy_passwordObject

Returns the value of attribute proxy_password.



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

def proxy_password
  @proxy_password
end

#proxy_portObject

Returns the value of attribute proxy_port.



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

def proxy_port
  @proxy_port
end

#proxy_userObject

Returns the value of attribute proxy_user.



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

def proxy_user
  @proxy_user
end

#retriesObject

Returns the value of attribute retries.



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

def retries
  @retries
end

#retry_delayObject

Returns the value of attribute retry_delay.



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

def retry_delay
  @retry_delay
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end