Class: Fragmenter::DummyIO

Inherits:
StringIO
  • Object
show all
Defined in:
lib/fragmenter/dummy_io.rb

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject



9
10
11
# File 'lib/fragmenter/dummy_io.rb', line 9

def content_type
  @content_type || 'application/octet-stream'
end

#original_filenameObject



5
6
7
# File 'lib/fragmenter/dummy_io.rb', line 5

def original_filename
  @original_filename || ['dummy', content_type.split('/').last].join('.')
end