Class: Entitlements::Extras::Orgchart::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/entitlements/extras/orgchart/base.rb

Direct Known Subclasses

PersonMethods

Constant Summary

Constants inherited from Base

Base::C

Class Method Summary collapse

Methods inherited from Base

config

Methods included from Contracts::Core

common, extended, included

Class Method Details

.initObject



10
11
12
13
14
15
# File 'lib/entitlements/extras/orgchart/base.rb', line 10

def self.init
  require_relative "logic"
  require_relative "person_methods"
  require_relative "rules/direct_report"
  require_relative "rules/management"
end

.person_methodsObject



21
22
23
# File 'lib/entitlements/extras/orgchart/base.rb', line 21

def self.person_methods
  %w[manager]
end

.reset!Object



25
26
27
28
# File 'lib/entitlements/extras/orgchart/base.rb', line 25

def self.reset!
  super
  Entitlements::Extras::Orgchart::PersonMethods.reset!
end

.rulesObject



17
18
19
# File 'lib/entitlements/extras/orgchart/base.rb', line 17

def self.rules
  %w[direct_report management]
end