class HideMyAss::Proxy::Hidester

Represent one proxy instance from hidester.com/proxylist

Public Instance Methods

anonymity() click to toggle source

The level of anonymity in downcase letters. (low, medium, high, …)

@return [ String ]

# File lib/hidemyass/proxy/hidester.rb, line 47
def anonymity
  case @row['anonymity']
  when 'Elite'     then 'high'
  when 'Anonymous' then 'medium'
  else 'no'
  end
end
country() click to toggle source

The country where the proxy is hosted in downcase letters.

@return [ String ]

# File lib/hidemyass/proxy/hidester.rb, line 24
def country
  @row['country'].downcase
end
ip() click to toggle source

The IP of the proxy server.

@return [ String ]

# File lib/hidemyass/proxy/hidester.rb, line 10
def ip
  @row['IP']
end
last_check() click to toggle source

Time in minutes when its been last checked.

@return [ Int ]

# File lib/hidemyass/proxy/hidester.rb, line 58
def last_check
  require 'time'
  ((Time.now - Time.at(@row['latest_check'])) / 60).round
end
port() click to toggle source

The port for the proxy.

@return [ Int ]

# File lib/hidemyass/proxy/hidester.rb, line 17
def port
  @row['PORT']
end
speed() click to toggle source

The average response time in milliseconds.

@return [ Int ]

# File lib/hidemyass/proxy/hidester.rb, line 31
def speed
  @row['ping']
end
type() click to toggle source

The network protocol in in downcase letters. (https or http or socks)

@return [ String ]

# File lib/hidemyass/proxy/hidester.rb, line 39
def type
  @row['type']
end