Class: Pixelpress::FakeFile
- Inherits:
-
StringIO
- Object
- StringIO
- Pixelpress::FakeFile
- Defined in:
- lib/pixelpress/fake_file.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#original_filename ⇒ Object
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(data, options = {}) ⇒ FakeFile
constructor
A new instance of FakeFile.
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, = {}) @original_filename = [:original_filename] @content_type = [:content_type] super data end |
Instance Attribute Details
#content_type ⇒ Object
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_filename ⇒ Object
Returns the value of attribute original_filename.
3 4 5 |
# File 'lib/pixelpress/fake_file.rb', line 3 def original_filename @original_filename end |