Method: MDQT::Client#initialize
- Defined in:
- lib/mdqt/client.rb
#initialize(base_url, options = {}) ⇒ Client
Returns a new instance of Client.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/mdqt/client.rb', line 22 def initialize(base_url, ={}) @base_url = base_url @verbose = [:verbose] || false @explain = [:explain] || false @tls_cert_check = [:tls_risky] ? false : true @cache_type = [:cache_type] || :none @md_service = MetadataService.new(@base_url, verbose: @verbose, cache_type: @cache_type, explain: @explain, tls_cert_check: tls_cert_check?) end |