Class: ActiveRecordEncryption::Encryptor::Base
- Inherits:
-
Object
- Object
- ActiveRecordEncryption::Encryptor::Base
- Defined in:
- lib/active_record_encryption/encryptor/base.rb
Overview
Abstract interface of encryptor
Direct Known Subclasses
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #decrypt(value) ⇒ Object
- #encrypt(value) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
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 |