Class: Entitlements::Data::Groups::Calculated::Rules::Username
- Inherits:
-
Base
- Object
- Base
- Entitlements::Data::Groups::Calculated::Rules::Username
show all
- Includes:
- Contracts::Core
- Defined in:
- lib/entitlements/data/groups/calculated/rules/username.rb
Constant Summary
collapse
- C =
::Contracts
Class Method Summary
collapse
common, extended, included
Class Method Details
.matches(value:, filename: nil, options: {}) ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/entitlements/data/groups/calculated/rules/username.rb', line 25
def self.matches(value:, filename: nil, options: {})
begin
Set.new([Entitlements.cache[:people_obj].read(value)].compact)
rescue Entitlements::Data::People::NoSuchPersonError
Set.new({})
end
end
|