Exception: SimonSays::Authorizer::Denied

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simon_says/authorizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(as, required, actual) ⇒ Denied

Returns a new instance of Denied



7
8
9
10
# File 'lib/simon_says/authorizer.rb', line 7

def initialize(as, required, actual)
  # TODO i18n for err message (as should be singluarized with 1 flag)
  super "Access denied; #{required * ', '} role is required. Current access is #{actual * ', '}"
end