Sha256: 4e53cb55e1f2c9dd48d03d58d4af16f97f82936837a161def97aae947a121e90

Contents?: true

Size: 669 Bytes

Versions: 14

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true

require_relative "../base"
require "yaml"

module Entitlements
  module Extras
    class Orgchart
      class Base < Entitlements::Extras::Base
        def self.init
          require_relative "logic"
          require_relative "person_methods"
          require_relative "rules/direct_report"
          require_relative "rules/management"
        end

        def self.rules
          %w[direct_report management]
        end

        def self.person_methods
          %w[manager]
        end

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
entitlements-app-1.1.0 lib/entitlements/extras/orgchart/base.rb
entitlements-app-1.0.0 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.3.4 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.3.1 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.3.0 lib/entitlements/extras/orgchart/base.rb
entitlements-0.2.1 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.2.1 lib/entitlements/extras/orgchart/base.rb
entitlements-0.2.0 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.2.0 lib/entitlements/extras/orgchart/base.rb
entitlements-0.1.8 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.1.8 lib/entitlements/extras/orgchart/base.rb
entitlements-0.1.7 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.1.7 lib/entitlements/extras/orgchart/base.rb
entitlements-app-0.1.6 lib/entitlements/extras/orgchart/base.rb