class ActiveStorage::Preview

def key

Returns a combination key of the blob and the variation that together identifies a specific variant.
def key
  if processed?
    variant.key
  else
    raise UnprocessedError
  end
end