Class: Omnizip::Password::EncryptionRegistry

Inherits:
Registry
  • Object
show all
Defined in:
lib/omnizip/password/encryption_registry.rb

Class Method Summary collapse

Methods inherited from Registry

available, each, entries, get, normalize_key, register, register_lazy, registered?, reset!

Class Method Details

.create(name, password, **options) ⇒ Object



15
16
17
# File 'lib/omnizip/password/encryption_registry.rb', line 15

def create(name, password, **options)
  get(name).new(password, **options)
end

.labelObject



11
12
13
# File 'lib/omnizip/password/encryption_registry.rb', line 11

def label
  "Encryption strategy"
end

.not_found_error_classObject



7
8
9
# File 'lib/omnizip/password/encryption_registry.rb', line 7

def not_found_error_class
  Omnizip::UnknownEncryptionStrategyError
end