Class: SmartyStreets::Proxy
- Inherits:
-
Object
- Object
- SmartyStreets::Proxy
- Defined in:
- lib/smartystreets_ruby_sdk/proxy.rb
Overview
Contains information about the proxy through which all requests will be sent.
host should not include a scheme
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#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(host, port, username = nil, password = nil) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(host, port, username = nil, password = nil) ⇒ Proxy
Returns a new instance of Proxy.
9 10 11 12 13 14 |
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 9 def initialize(host, port, username = nil, password = nil) @host = host @port = port @username = username @password = password end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7 def username @username end |