Module: PDC::Request::TokenFetcher::Configuration

Included in:
PDC::Request::TokenFetcher
Defined in:
lib/pdc/http/request/token_fetcher.rb

Constant Summary collapse

VALID_KEYS =
%i[ssl_verify_mode url].freeze

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



15
16
17
# File 'lib/pdc/http/request/token_fetcher.rb', line 15

def configure
  yield self
end

#optionsObject



11
12
13
# File 'lib/pdc/http/request/token_fetcher.rb', line 11

def options
  Hash[*VALID_KEYS.map { |k| [k, send(k)] }.flatten]
end