Class: Chat::Service::TrashChannel

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
plugins/chat/app/services/trash_channel.rb

Overview

Service responsible for trashing a chat channel. Note the slug is modified to prevent collisions.

Examples:

Chat::Service::TrashChannel.call(channel_id: 2, guardian: guardian)

Constant Summary collapse

DELETE_CHANNEL_LOG_KEY =
"chat_channel_delete"

Instance Method Summary collapse

Methods included from Base

contract, model, policy, step, transaction

Instance Method Details

#call(channel_id: , guardian: ) ⇒ Chat::Service::Base::Context

Parameters:

  • channel_id (Integer) (defaults to: )
  • guardian (Guardian) (defaults to: )

Returns: