Class: RailsBand::ActiveStorage::Event::ServiceExist
- Defined in:
- lib/rails_band/active_storage/event/service_exist.rb
Overview
A wrapper for the event that is passed to service_exist.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
Constructor Details
This class inherits a constructor from RailsBand::BaseEvent
Instance Method Details
#exist ⇒ Object
18 19 20 21 22 |
# File 'lib/rails_band/active_storage/event/service_exist.rb', line 18 def exist return @exist if defined? @exist @exist = @event.payload.fetch(:exist) end |
#key ⇒ Object
8 9 10 11 12 |
# File 'lib/rails_band/active_storage/event/service_exist.rb', line 8 def key return @key if defined? @key @key = @event.payload[:key] end |
#service ⇒ Object
14 15 16 |
# File 'lib/rails_band/active_storage/event/service_exist.rb', line 14 def service @service ||= @event.payload.fetch(:service) end |