class WarpEngine::Access::Grant
The access policyโs permission for one download.
Constants
- OPEN
-
The grant with no file name or expiry.
Attributes
- filename
-
the file name to serve the download under, or
nilfor the stored name expires_in-
how long a redirect URL from the storage adapter stays valid, or
nil
- filename
-
the file name to serve the download under, or
nilfor the stored name expires_in-
how long a redirect URL from the storage adapter stays valid, or
nil
Public Class Methods
# File lib/warp_engine/access.rb, line 100 def initialize(filename: nil, expires_in: nil) @filename = filename @expires_in = expires_in end
Creates a grant with the given filename and expires_in.