Class: Effective::AssetStringIO

Inherits:
StringIO
  • Object
show all
Defined in:
app/models/effective/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AssetStringIO

Returns a new instance of AssetStringIO.



290
291
292
293
# File 'app/models/effective/asset.rb', line 290

def initialize(*args)
  super(*args[1..-1])
  @filepath = args[0]
end

Instance Attribute Details

#filepathObject

Returns the value of attribute filepath.



288
289
290
# File 'app/models/effective/asset.rb', line 288

def filepath
  @filepath
end

Instance Method Details

#original_filenameObject



295
296
297
# File 'app/models/effective/asset.rb', line 295

def original_filename
  File.basename(filepath)
end