class RailsBand::ActiveStorage::Event::ServiceExist

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

def exist

def exist
  return @exist if defined? @exist
  @exist = @event.payload.fetch(:exist)
end

def key

def key
  return @key if defined? @key
  @key = @event.payload[:key]
end

def service

def service
  @service ||= @event.payload.fetch(:service)
end