Class: Cloudinary::CarrierWave::RemoteFile
- Defined in:
- lib/cloudinary/carrier_wave/remote.rb
Instance Attribute Summary collapse
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(uri, filename) ⇒ RemoteFile
constructor
A new instance of RemoteFile.
Constructor Details
#initialize(uri, filename) ⇒ RemoteFile
Returns a new instance of RemoteFile.
17 18 19 20 |
# File 'lib/cloudinary/carrier_wave/remote.rb', line 17 def initialize(uri, filename) @uri = uri @original_filename = filename end |
Instance Attribute Details
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
16 17 18 |
# File 'lib/cloudinary/carrier_wave/remote.rb', line 16 def original_filename @original_filename end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
16 17 18 |
# File 'lib/cloudinary/carrier_wave/remote.rb', line 16 def uri @uri end |
Instance Method Details
#delete ⇒ Object
22 23 24 |
# File 'lib/cloudinary/carrier_wave/remote.rb', line 22 def delete # Do nothing. This is a virtual file. end |