class SocketLabs::InjectionApi::Proxy
Represents a http proxy.
Attributes
host[RW]
The name of the proxy hostname
port[RW]
The value of the proxy port
Public Class Methods
new( host= nil, port= nil )
click to toggle source
# File lib/socketlabs/injectionapi/proxy.rb, line 12 def initialize ( host= nil, port= nil ) @host = host @port = port end
Public Instance Methods
to_s()
click to toggle source
Returns the Proxy
as a string. @return [String]
# File lib/socketlabs/injectionapi/proxy.rb, line 22 def to_s "#{@host}:#{@port}" end