module VaultApi::Configuration
Constants
- DEFAULT_ADDRESS
By default use the main api URL.
- VALID_OPTIONS_KEYS
Public Class Methods
extended(base)
click to toggle source
When this module is extended, reset all settings.
# File lib/vault_api/configuration.rb, line 35 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Convenience method to allow configuration options to be set in a block
# File lib/vault_api/configuration.rb, line 24 def configure yield self end
options()
click to toggle source
# File lib/vault_api/configuration.rb, line 28 def options VALID_OPTIONS_KEYS.each_with_object({}) do |key, option| option[key] = send(key) end end
reset()
click to toggle source
Reset all configuration settings to default values.
# File lib/vault_api/configuration.rb, line 40 def reset self.address = DEFAULT_ADDRESS # self.adapter = DEFAULT_ADAPTER end