Class: GCal4Ruby::ProxyInfo
- Inherits:
-
Object
- Object
- GCal4Ruby::ProxyInfo
- Defined in:
- lib/gcal4ruby/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.
82 83 84 85 86 87 |
# File 'lib/gcal4ruby/base.rb', line 82 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.
73 74 75 |
# File 'lib/gcal4ruby/base.rb', line 73 def address @address end |
#password ⇒ Object
Returns the value of attribute password.
73 74 75 |
# File 'lib/gcal4ruby/base.rb', line 73 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
73 74 75 |
# File 'lib/gcal4ruby/base.rb', line 73 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
73 74 75 |
# File 'lib/gcal4ruby/base.rb', line 73 def username @username end |