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
15 16 17 |
# File 'lib/pdc/http/request/token_fetcher.rb', line 15 def configure yield self end |
#options ⇒ Object
11 12 13 |
# File 'lib/pdc/http/request/token_fetcher.rb', line 11 def Hash[*VALID_KEYS.map { |k| [k, send(k)] }.flatten] end |