Class: DbchainClient::KeyStore
- Inherits:
-
Object
- Object
- DbchainClient::KeyStore
- Defined in:
- lib/dbchain_client/key_escrow.rb
Overview
This key store is for test purpose. Developers are supposed to implement their own key store for production.
Instance Method Summary collapse
-
#initialize ⇒ KeyStore
constructor
A new instance of KeyStore.
- #load(key) ⇒ Object
- #save(key, value) ⇒ Object
Constructor Details
#initialize ⇒ KeyStore
Returns a new instance of KeyStore.
85 86 87 |
# File 'lib/dbchain_client/key_escrow.rb', line 85 def initialize @h = {} end |
Instance Method Details
#load(key) ⇒ Object
93 94 95 |
# File 'lib/dbchain_client/key_escrow.rb', line 93 def load(key) @h[key] end |
#save(key, value) ⇒ Object
89 90 91 |
# File 'lib/dbchain_client/key_escrow.rb', line 89 def save(key, value) @h[key] = value end |