Class: CarrierWave::Storage::GcloudOptions
- Inherits:
-
Object
- Object
- CarrierWave::Storage::GcloudOptions
- Defined in:
- lib/carrierwave/storage/gcloud_options.rb
Instance Attribute Summary collapse
-
#uploader ⇒ Object
readonly
Returns the value of attribute uploader.
Instance Method Summary collapse
- #expiration_options(options = {}) ⇒ Object
-
#initialize(uploader) ⇒ GcloudOptions
constructor
A new instance of GcloudOptions.
- #read_options ⇒ Object
Constructor Details
#initialize(uploader) ⇒ GcloudOptions
Returns a new instance of GcloudOptions.
6 7 8 |
# File 'lib/carrierwave/storage/gcloud_options.rb', line 6 def initialize(uploader) @uploader = uploader end |
Instance Attribute Details
#uploader ⇒ Object (readonly)
Returns the value of attribute uploader.
4 5 6 |
# File 'lib/carrierwave/storage/gcloud_options.rb', line 4 def uploader @uploader end |
Instance Method Details
#expiration_options(options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/carrierwave/storage/gcloud_options.rb', line 14 def ( = {}) uploader_expiration = uploader.gcloud_authenticated_url_expiration { expires_in: uploader_expiration }.merge() end |
#read_options ⇒ Object
10 11 12 |
# File 'lib/carrierwave/storage/gcloud_options.rb', line 10 def end |