Class: Cloudinary::CarrierWave::RemoteFile

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudinary/carrier_wave/remote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_filenameObject (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

#uriObject (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

#deleteObject



22
23
24
# File 'lib/cloudinary/carrier_wave/remote.rb', line 22

def delete
  # Do nothing. This is a virtual file.
end