mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 12:03:37 +01:00
19 lines
281 B
Ruby
19 lines
281 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module UseCase
|
||
|
module MuteRule
|
||
|
class Destroy < UseCase::Base
|
||
|
option :rule, Types.Instance(::MuteRule)
|
||
|
|
||
|
def call
|
||
|
rule.destroy!
|
||
|
|
||
|
{
|
||
|
status: 204,
|
||
|
resource: nil
|
||
|
}
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|