Class: GData4Ruby::ProxyInfo
- Inherits:
-
Object
- Object
- GData4Ruby::ProxyInfo
- Defined in:
- lib/gdata4ruby/base.rb
Overview
The ProxyInfo class contains information for configuring a proxy connection
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(address, port, username = nil, password = nil) ⇒ ProxyInfo
constructor
The initialize function accepts four variables for configuring the ProxyInfo object.
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
#address ⇒ Object
Returns the value of attribute address.
46 47 48 |
# File 'lib/gdata4ruby/base.rb', line 46 def address @address end |
#password ⇒ Object
Returns the value of attribute password.
46 47 48 |
# File 'lib/gdata4ruby/base.rb', line 46 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
46 47 48 |
# File 'lib/gdata4ruby/base.rb', line 46 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
46 47 48 |
# File 'lib/gdata4ruby/base.rb', line 46 def username @username end |