Class: SmartyStreets::Proxy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7

def host
  @host
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7

def password
  @password
end

#portObject

Returns the value of attribute port.



7
8
9
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7

def port
  @port
end

#usernameObject

Returns the value of attribute username.



7
8
9
# File 'lib/smartystreets_ruby_sdk/proxy.rb', line 7

def username
  @username
end