Module: HashedAttr::Base

Defined in:
lib/hashed_attr/base.rb

Defined Under Namespace

Modules: ClassMethods

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.encryptorObject

Define the object that will encrypt/decrypt values. By default, it’s HashedAttr::Encryptor



10
11
12
# File 'lib/hashed_attr/base.rb', line 10

def encryptor
  @encryptor
end

Class Method Details

.included(target) ⇒ Object



3
4
5
# File 'lib/hashed_attr/base.rb', line 3

def self.included(target)
  target.extend(ClassMethods)
end