Exception: PermissionPolicy::MissingPrecondition
- Inherits:
-
StandardError
- Object
- StandardError
- PermissionPolicy::MissingPrecondition
- Defined in:
- lib/permission_policy/errors/missing_precondition.rb
Instance Attribute Summary collapse
-
#precondition ⇒ Object
readonly
Returns the value of attribute precondition.
Instance Method Summary collapse
-
#initialize(precondition) ⇒ MissingPrecondition
constructor
A new instance of MissingPrecondition.
- #message ⇒ Object
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
#precondition ⇒ Object (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
#message ⇒ Object
9 10 11 |
# File 'lib/permission_policy/errors/missing_precondition.rb', line 9 def "missing precondition: #{precondition}" end |