Class: Entitlements::Data::Groups::Calculated::YAML
- Includes:
- Contracts::Core
- Defined in:
- lib/entitlements.rb,
lib/entitlements/data/groups/calculated/yaml.rb
Constant Summary collapse
- C =
::Contracts
Constants inherited from Base
Base::ALIAS_METHODS, Base::MAX_MODIFIER_ITERATIONS, Base::MODIFIERS
Instance Attribute Summary
Attributes inherited from Base
#filename, #filters, #metadata
Instance Method Summary collapse
Methods included from Contracts::Core
Methods inherited from Base
#fatal_message, #filtered_members, #initialize, #modified_filtered_members, #modified_members
Constructor Details
This class inherits a constructor from Entitlements::Data::Groups::Calculated::Base
Instance Method Details
#description ⇒ Object
33 34 35 |
# File 'lib/entitlements/data/groups/calculated/yaml.rb', line 33 def description parsed_data.fetch("description", "") end |
#members ⇒ Object
20 21 22 23 24 25 |
# File 'lib/entitlements/data/groups/calculated/yaml.rb', line 20 def members @members ||= begin Entitlements.logger.debug "Calculating members from #{filename}" members_from_rules(rules) end end |
#modifiers ⇒ Object
44 45 46 |
# File 'lib/entitlements/data/groups/calculated/yaml.rb', line 44 def modifiers parsed_data.select { |k, _v| MODIFIERS.include?(k) } end |