Class: ApiEngineBase::InboxService::Blast::Delete
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- ApiEngineBase::InboxService::Blast::Delete
- Defined in:
- app/services/api_engine_base/inbox_service/blast/delete.rb
Constant Summary
Constants inherited from ServiceBase
ServiceBase::ON_ARGUMENT_VALIDATION
Instance Method Summary collapse
Methods inherited from ServiceBase
inherited, #internal_validate, #service_base_logging, #validate!
Methods included from ArgumentValidation
Methods included from ServiceLogging
#aletered_message, #class_name, #log, #log_error, #log_info, #log_prefix, #log_warn, #logger, #service_id
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/services/api_engine_base/inbox_service/blast/delete.rb', line 11 def call = ::MessageBlast.where(id:).first if .nil? inline_argument_failure!(errors: { id: "MessageBlast ID not found" }) end .destroy end |