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(options) ⇒ Object



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

def get_id(options)
  result = client.proxy_get({
    'filter' => {'name' => options['name']}})
    result.first['proxyid']
end