Class: RestMan::Request::Init::SSLOpts

Inherits:
ActiveMethod::Base
  • Object
show all
Defined in:
lib/restman/request/init/ssl_opts.rb

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/restman/request/init/ssl_opts.rb', line 9

def call
  ssl_opts[:verify_ssl] = verify_ssl
 
  Request::SSLOptionList.each do |key|
    ssl_key = ('ssl_' + key).to_sym

    if args.key?(ssl_key)
      ssl_opts[key.to_sym] = args.fetch(ssl_key)
    end
  end
    
  set_cert_store

  ssl_opts
end