Class: NamedStringIO

Inherits:
StringIO
  • Object
show all
Defined in:
lib/paperclip/staging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, filename, type) ⇒ NamedStringIO

Returns a new instance of NamedStringIO.



12
13
14
15
16
# File 'lib/paperclip/staging.rb', line 12

def initialize(text, filename, type)
  super(text)
  self.original_filename = filename
  self.content_type = type
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



10
11
12
# File 'lib/paperclip/staging.rb', line 10

def content_type
  @content_type
end

#original_filenameObject

Returns the value of attribute original_filename.



9
10
11
# File 'lib/paperclip/staging.rb', line 9

def original_filename
  @original_filename
end