Class: ForestLiana::Ability::Exceptions::RequireApproval

Inherits:
Errors::ExpectedError
  • Object
show all
Defined in:
app/services/forest_liana/ability/exceptions/require_approval.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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