Class: ActiveRecordEncryption::Encryptor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_encryption/encryptor/base.rb

Overview

Abstract interface of encryptor

Direct Known Subclasses

Raw

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.


7
# File 'lib/active_record_encryption/encryptor/base.rb', line 7

def initialize(*, **); end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?


17
18
19
# File 'lib/active_record_encryption/encryptor/base.rb', line 17

def ==(other)
  self.class == other.class
end

#decrypt(value) ⇒ Object


13
14
15
# File 'lib/active_record_encryption/encryptor/base.rb', line 13

def decrypt(value)
  value
end

#encrypt(value) ⇒ Object


9
10
11
# File 'lib/active_record_encryption/encryptor/base.rb', line 9

def encrypt(value)
  value
end