Class: BPL::Derivatives::IoDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- BPL::Derivatives::IoDecorator
- Defined in:
- lib/bpl/derivatives/io_decorator.rb
Instance Attribute Summary collapse
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#original_filename ⇒ Object
(also: #original_name)
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(file, mime_type = nil, original_filename = nil) ⇒ IoDecorator
constructor
A new instance of IoDecorator.
Constructor Details
#initialize(file, mime_type = nil, original_filename = nil) ⇒ IoDecorator
Returns a new instance of IoDecorator.
9 10 11 12 13 |
# File 'lib/bpl/derivatives/io_decorator.rb', line 9 def initialize(file, mime_type = nil, original_filename = nil) super(file) self.mime_type = mime_type self.original_filename = original_filename end |
Instance Attribute Details
#mime_type ⇒ Object
Returns the value of attribute mime_type.
5 6 7 |
# File 'lib/bpl/derivatives/io_decorator.rb', line 5 def mime_type @mime_type end |
#original_filename ⇒ Object Also known as: original_name
Returns the value of attribute original_filename.
5 6 7 |
# File 'lib/bpl/derivatives/io_decorator.rb', line 5 def original_filename @original_filename end |