Class: Wechat::NetworkSetting

Inherits:
Object
  • Object
show all
Defined in:
lib/wechat/network_setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout, skip_verify_ssl, proxy_url, proxy_username, proxy_password) ⇒ NetworkSetting

Returns a new instance of NetworkSetting.



7
8
9
10
11
12
13
# File 'lib/wechat/network_setting.rb', line 7

def initialize(timeout, skip_verify_ssl, proxy_url, proxy_username, proxy_password)
  @timeout = timeout
  @skip_verify_ssl = skip_verify_ssl
  @proxy_url = proxy_url
  @proxy_username = proxy_username
  @proxy_password = proxy_password
end

Instance Attribute Details

#proxy_passwordObject (readonly)

Returns the value of attribute proxy_password.



5
6
7
# File 'lib/wechat/network_setting.rb', line 5

def proxy_password
  @proxy_password
end

#proxy_urlObject (readonly)

Returns the value of attribute proxy_url.



5
6
7
# File 'lib/wechat/network_setting.rb', line 5

def proxy_url
  @proxy_url
end

#proxy_usernameObject (readonly)

Returns the value of attribute proxy_username.



5
6
7
# File 'lib/wechat/network_setting.rb', line 5

def proxy_username
  @proxy_username
end

#skip_verify_sslObject (readonly)

Returns the value of attribute skip_verify_ssl.



5
6
7
# File 'lib/wechat/network_setting.rb', line 5

def skip_verify_ssl
  @skip_verify_ssl
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/wechat/network_setting.rb', line 5

def timeout
  @timeout
end