Class: Pixelpress::FakeFile

Inherits:
StringIO
  • Object
show all
Defined in:
lib/pixelpress/fake_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, options = {}) ⇒ FakeFile

Returns a new instance of FakeFile.



5
6
7
8
9
# File 'lib/pixelpress/fake_file.rb', line 5

def initialize(data, options = {})
  @original_filename = options[:original_filename]
  @content_type = options[:content_type]
  super data
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



3
4
5
# File 'lib/pixelpress/fake_file.rb', line 3

def content_type
  @content_type
end

#original_filenameObject

Returns the value of attribute original_filename.



3
4
5
# File 'lib/pixelpress/fake_file.rb', line 3

def original_filename
  @original_filename
end