Class: ProxyCheck::Client
- Inherits:
-
Object
- Object
- ProxyCheck::Client
- Includes:
- API::ProxyLookup, Configurable
- Defined in:
- lib/proxycheck/client.rb
Constant Summary
Constants included from API::ProxyLookup
Constants included from API::Util
Instance Attribute Summary
Attributes included from Configurable
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from API::ProxyLookup
Methods included from API::Util
Methods included from Configurable
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(={}) ProxyCheck::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || ProxyCheck.instance_variable_get(:"@#{key}")) end end |