Exception: PermissionPolicy::MissingPrecondition

Inherits:
StandardError
  • Object
show all
Defined in:
lib/permission_policy/errors/missing_precondition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(precondition) ⇒ MissingPrecondition

Returns a new instance of MissingPrecondition.



5
6
7
# File 'lib/permission_policy/errors/missing_precondition.rb', line 5

def initialize(precondition)
  @precondition = precondition
end

Instance Attribute Details

#preconditionObject (readonly)

Returns the value of attribute precondition.



3
4
5
# File 'lib/permission_policy/errors/missing_precondition.rb', line 3

def precondition
  @precondition
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/permission_policy/errors/missing_precondition.rb', line 9

def message
  "missing precondition: #{precondition}"
end