class RailsBand::ActiveStorage::Event::ServiceUpdateMetadata
A wrapper for the event that is passed to ‘service_update_metadata.active_storage`.
Public Instance Methods
content_type()
click to toggle source
# 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()
click to toggle source
# File lib/rails_band/active_storage/event/service_update_metadata.rb, line 22 def disposition @disposition ||= @event.payload.fetch(:disposition) end
key()
click to toggle source
# 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()
click to toggle source
# File lib/rails_band/active_storage/event/service_update_metadata.rb, line 14 def service @service ||= @event.payload.fetch(:service) end