Class: RailsBand::ActiveStorage::Event::ServiceUpdateMetadata
- Inherits:
-
BaseEvent
- Object
- BaseEvent
- RailsBand::ActiveStorage::Event::ServiceUpdateMetadata
show all
- Defined in:
- lib/rails_band/active_storage/event/service_update_metadata.rb
Overview
A wrapper for the event that is passed to service_update_metadata.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
Instance Method Details
#content_type ⇒ Object
18
19
20
|
# File 'lib/rails_band/active_storage/event/service_update_metadata.rb', line 18
def content_type
@content_type ||= @event.payload.fetch(:content_type)
end
|
#disposition ⇒ Object
22
23
24
|
# File 'lib/rails_band/active_storage/event/service_update_metadata.rb', line 22
def disposition
@disposition ||= @event.payload.fetch(:disposition)
end
|
#key ⇒ Object
8
9
10
11
12
|
# File 'lib/rails_band/active_storage/event/service_update_metadata.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_update_metadata.rb', line 14
def service
@service ||= @event.payload.fetch(:service)
end
|