Exception: AttrVault::UnknownKey
- Defined in:
- lib/attr_vault/errors.rb
Instance Method Summary collapse
-
#initialize(key_id) ⇒ UnknownKey
constructor
A new instance of UnknownKey.
- #message ⇒ Object
Constructor Details
#initialize(key_id) ⇒ UnknownKey
Returns a new instance of UnknownKey.
9 10 11 |
# File 'lib/attr_vault/errors.rb', line 9 def initialize(key_id) @key_id = key_id end |
Instance Method Details
#message ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/attr_vault/errors.rb', line 12 def formatted_id = if @key_id.nil? '<nil>' else @key_id end "No key with id #{formatted_id} found in keyring" end |