Module: Soar::Authentication::IdentityUuidTranslator::Factory

Defined in:
lib/soar/authentication/identity_uuid_translator/factory.rb

Class Method Summary collapse

Class Method Details

.create(selector:, value:) ⇒ Soar::Registry::Identity

Parameters:

  • value (String)
  • selector (ObjectSelector)

Returns:

  • (Soar::Registry::Identity)

Raises:

  • (ObjectSelector::Error::NoMatchError)


14
15
16
17
# File 'lib/soar/authentication/identity_uuid_translator/factory.rb', line 14

def self.create(selector: , value: )
  provider = selector.select(value)
  return Soar::Authentication::IdentityUuidTranslator.new(provider)
end