class RailsBand::ActiveStorage::Event::ServiceUpload

A wrapper for the event that is passed to ‘service_upload.active_storage`.

Public Instance Methods

checksum() click to toggle source
# File lib/rails_band/active_storage/event/service_upload.rb, line 14
def checksum
  return @checksum if defined? @checksum

  @checksum = @event.payload[:checksum]
end
key() click to toggle source
# File lib/rails_band/active_storage/event/service_upload.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_upload.rb, line 20
def service
  @service ||= @event.payload.fetch(:service)
end