Class: Proxies

Inherits:
Base
  • Object
show all
Defined in:
lib/zapix/proxies/proxies.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Base

Instance Method Details

#get_id(proxy_name) ⇒ Object



4
5
6
7
8
# File 'lib/zapix/proxies/proxies.rb', line 4

def get_id(proxy_name)
  result = client.proxy_get('filter' => { 'host' => proxy_name })

  result.first['proxyid']
end