This is the base class for holding parameters for network connections. It delegates most work to the underlying Hash in which options are actually stored.
The parameters that can be set are:
:ca_file
:ca_path
:verify_peer
:client_certificate
:client_password
All others will be ignored. Any parameters not set will return
nil
when queried.
Create a new set of connection parameters with no defaults set.
# File lib/t2-server/connection-parameters.rb, line 64 def initialize @params = {} end
Set a connection parameter. See the list of allowed parameters in the class description.
# File lib/t2-server/connection-parameters.rb, line 73 def []=(param, value) @params[param] = value if ALLOWED_PARAMS.include?(param) end