Class: RailsBand::ActiveStorage::Event::ServiceDeletePrefixed

Inherits:
BaseEvent
  • Object
show all
Defined in:
lib/rails_band/active_storage/event/service_delete_prefixed.rb

Overview

A wrapper for the event that is passed to service_delete_prefixed.active_storage.

Instance Attribute Summary

Attributes inherited from BaseEvent

#allocations, #cpu_time, #duration, #end, #idle_time, #name, #time, #transaction_id

Instance Method Summary collapse

Methods inherited from BaseEvent

#initialize, #slice, #to_h

Constructor Details

This class inherits a constructor from RailsBand::BaseEvent

Instance Method Details

#prefix ⇒ Object



8
9
10
# File 'lib/rails_band/active_storage/event/service_delete_prefixed.rb', line 8

def prefix
  @prefix ||= @event.payload.fetch(:prefix)
end

#service ⇒ Object



12
13
14
# File 'lib/rails_band/active_storage/event/service_delete_prefixed.rb', line 12

def service
  @service ||= @event.payload.fetch(:service)
end