class RailsBand::ActiveStorage::Event::ServiceUrl

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

def key

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

def service

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

def url

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