class RailsBand::ActiveStorage::LogSubscriber
The custom LogSubscriber
for ActiveStorage
.
Public Instance Methods
analyze(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 66 def analyze(event) consumer_of(__method__)&.call(Event::Analyze.new(event)) end
preview(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 58 def preview(event) consumer_of(__method__)&.call(Event::Preview.new(event)) end
service_delete(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 38 def service_delete(event) consumer_of(__method__)&.call(Event::ServiceDelete.new(event)) end
service_delete_prefixed(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 42 def service_delete_prefixed(event) consumer_of(__method__)&.call(Event::ServiceDeletePrefixed.new(event)) end
service_download(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 34 def service_download(event) consumer_of(__method__)&.call(Event::ServiceDownload.new(event)) end
service_download_chunk(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 30 def service_download_chunk(event) consumer_of(__method__)&.call(Event::ServiceDownloadChunk.new(event)) end
service_exist(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 46 def service_exist(event) consumer_of(__method__)&.call(Event::ServiceExist.new(event)) end
service_streaming_download(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 26 def service_streaming_download(event) consumer_of(__method__)&.call(Event::ServiceStreamingDownload.new(event)) end
service_update_metadata(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 54 def service_update_metadata(event) consumer_of(__method__)&.call(Event::ServiceUpdateMetadata.new(event)) end
service_upload(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 22 def service_upload(event) consumer_of(__method__)&.call(Event::ServiceUpload.new(event)) end
service_url(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 50 def service_url(event) consumer_of(__method__)&.call(Event::ServiceUrl.new(event)) end
transform(event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 62 def transform(event) consumer_of(__method__)&.call(Event::Transform.new(event)) end
Private Instance Methods
consumer_of(sub_event)
click to toggle source
# File lib/rails_band/active_storage/log_subscriber.rb, line 72 def consumer_of(sub_event) consumers[:"#{sub_event}.active_storage"] || consumers[:active_storage] || consumers[:default] end