Class: Cryptoform::StorageBackends::Backend

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoform/storage_backends/backend.rb

Direct Known Subclasses

File

Instance Method Summary collapse

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

#readObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/cryptoform/storage_backends/backend.rb', line 9

def read
  raise NotImplementedError
end

#write(data) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/cryptoform/storage_backends/backend.rb', line 13

def write(data)
  raise NotImplementedError
end