Class: GData4Ruby::ProxyInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gdata4ruby/base.rb

Overview

The ProxyInfo class contains information for configuring a proxy connection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, port, username = nil, password = nil) ⇒ ProxyInfo

The initialize function accepts four variables for configuring the ProxyInfo object.

The proxy connection is initiated using the builtin Net::HTTP proxy support.



55
56
57
58
59
60
# File 'lib/gdata4ruby/base.rb', line 55

def initialize(address, port, username=nil, password=nil)
  @address = address
  @port = port
  @username = username
  @password = password
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



46
47
48
# File 'lib/gdata4ruby/base.rb', line 46

def address
  @address
end

#passwordObject

Returns the value of attribute password.



46
47
48
# File 'lib/gdata4ruby/base.rb', line 46

def password
  @password
end

#portObject

Returns the value of attribute port.



46
47
48
# File 'lib/gdata4ruby/base.rb', line 46

def port
  @port
end

#usernameObject

Returns the value of attribute username.



46
47
48
# File 'lib/gdata4ruby/base.rb', line 46

def username
  @username
end