Module: Terminalwire::Client::Entitlement::Policy

Defined in:
lib/terminalwire/client/entitlement/policy.rb

Defined Under Namespace

Classes: Base, Root

Class Method Summary collapse

Class Method Details

.resolve(authority:) ⇒ Object



98
99
100
101
102
103
104
105
# File 'lib/terminalwire/client/entitlement/policy.rb', line 98

def self.resolve(*, authority:, **, &)
  case authority
  when Policy::Root::AUTHORITY
    Root.new(*, **, &)
  else
    Base.new *, authority:, **, &
  end
end