Class: OneSecret::KeyResolution::Env
- Inherits:
-
Object
- Object
- OneSecret::KeyResolution::Env
- Defined in:
- lib/one_secret/key_resolution.rb
Instance Method Summary collapse
-
#initialize(env = ENV) ⇒ Env
constructor
A new instance of Env.
- #key ⇒ Object
Constructor Details
#initialize(env = ENV) ⇒ Env
Returns a new instance of Env.
18 19 20 |
# File 'lib/one_secret/key_resolution.rb', line 18 def initialize(env = ENV) @env = env end |
Instance Method Details
#key ⇒ Object
22 23 24 |
# File 'lib/one_secret/key_resolution.rb', line 22 def key @env["secret_key_base"] || @env["SECRET_KEY_BASE"] end |