Class: ProxyCheck::Client

Inherits:
Object
  • Object
show all
Includes:
API::ProxyLookup, Configurable
Defined in:
lib/proxycheck/client.rb

Constant Summary

Constants included from API::ProxyLookup

API::ProxyLookup::API_VERSION

Constants included from API::Util

API::Util::ROOT_URL

Instance Attribute Summary

Attributes included from Configurable

#api_key

Instance Method Summary collapse

Methods included from API::ProxyLookup

#proxy_lookup

Methods included from API::Util

#build_url, #call

Methods included from Configurable

#configure, keys

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



10
11
12
13
14
# File 'lib/proxycheck/client.rb', line 10

def initialize(options={})
				ProxyCheck::Configurable.keys.each do |key|
   		instance_variable_set(:"@#{key}", options[key] || ProxyCheck.instance_variable_get(:"@#{key}"))
 		end
end