Class: AddressFinder::Configuration
- Inherits:
-
Object
- Object
- AddressFinder::Configuration
- Defined in:
- lib/addressfinder/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#ca ⇒ Object
Returns the value of attribute ca.
-
#default_country ⇒ Object
Returns the value of attribute default_country.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#port ⇒ Object
Returns the value of attribute port.
-
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
-
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
-
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#verification_version ⇒ Object
Returns the value of attribute verification_version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/addressfinder/configuration.rb', line 3 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
4 5 6 |
# File 'lib/addressfinder/configuration.rb', line 4 def api_secret @api_secret end |
#ca ⇒ Object
Returns the value of attribute ca.
17 18 19 |
# File 'lib/addressfinder/configuration.rb', line 17 def ca @ca end |
#default_country ⇒ Object
Returns the value of attribute default_country.
13 14 15 |
# File 'lib/addressfinder/configuration.rb', line 13 def default_country @default_country end |
#domain ⇒ Object
Returns the value of attribute domain.
14 15 16 |
# File 'lib/addressfinder/configuration.rb', line 14 def domain @domain end |
#hostname ⇒ Object
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/addressfinder/configuration.rb', line 6 def hostname @hostname end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/addressfinder/configuration.rb', line 7 def port @port end |
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
8 9 10 |
# File 'lib/addressfinder/configuration.rb', line 8 def proxy_host @proxy_host end |
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
11 12 13 |
# File 'lib/addressfinder/configuration.rb', line 11 def proxy_password @proxy_password end |
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
9 10 11 |
# File 'lib/addressfinder/configuration.rb', line 9 def proxy_port @proxy_port end |
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
10 11 12 |
# File 'lib/addressfinder/configuration.rb', line 10 def proxy_user @proxy_user end |
#retries ⇒ Object
Returns the value of attribute retries.
15 16 17 |
# File 'lib/addressfinder/configuration.rb', line 15 def retries @retries end |
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
16 17 18 |
# File 'lib/addressfinder/configuration.rb', line 16 def retry_delay @retry_delay end |
#timeout ⇒ Object
Returns the value of attribute timeout.
12 13 14 |
# File 'lib/addressfinder/configuration.rb', line 12 def timeout @timeout end |
#verification_version ⇒ Object
Returns the value of attribute verification_version.
5 6 7 |
# File 'lib/addressfinder/configuration.rb', line 5 def verification_version @verification_version end |