Class: GCal4Ruby::ProxyInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gcal4ruby/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.



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

#addressObject

Returns the value of attribute address.



73
74
75
# File 'lib/gcal4ruby/base.rb', line 73

def address
  @address
end

#passwordObject

Returns the value of attribute password.



73
74
75
# File 'lib/gcal4ruby/base.rb', line 73

def password
  @password
end

#portObject

Returns the value of attribute port.



73
74
75
# File 'lib/gcal4ruby/base.rb', line 73

def port
  @port
end

#usernameObject

Returns the value of attribute username.



73
74
75
# File 'lib/gcal4ruby/base.rb', line 73

def username
  @username
end