Class: Cryptoform::StorageBackends::Backend
- Inherits:
-
Object
- Object
- Cryptoform::StorageBackends::Backend
- Defined in:
- lib/cryptoform/storage_backends/backend.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(state_name, **params) ⇒ Backend
constructor
A new instance of Backend.
- #read ⇒ Object
- #write(data) ⇒ Object
Constructor Details
#initialize(state_name, **params) ⇒ Backend
Returns a new instance of Backend.
4 5 6 7 |
# File 'lib/cryptoform/storage_backends/backend.rb', line 4 def initialize(state_name, **params) @state_name = state_name @params = params end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/cryptoform/storage_backends/backend.rb', line 9 def read raise NotImplementedError end |
#write(data) ⇒ Object
13 14 15 |
# File 'lib/cryptoform/storage_backends/backend.rb', line 13 def write(data) raise NotImplementedError end |