Class: ForestLiana::Ability::Exceptions::RequireApproval
- Inherits:
-
Errors::ExpectedError
- Object
- Errors::ExpectedError
- ForestLiana::Ability::Exceptions::RequireApproval
- Defined in:
- app/services/forest_liana/ability/exceptions/require_approval.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ RequireApproval
constructor
A new instance of RequireApproval.
Constructor Details
#initialize(data) ⇒ RequireApproval
Returns a new instance of RequireApproval.
6 7 8 9 10 11 12 13 14 |
# File 'app/services/forest_liana/ability/exceptions/require_approval.rb', line 6 def initialize(data) @data = data super( 403, :forbidden, 'This action requires to be approved.', 'CustomActionRequiresApprovalError', ) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'app/services/forest_liana/ability/exceptions/require_approval.rb', line 5 def data @data end |