Class: Hydra::Derivatives::IoDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hydra::Derivatives::IoDecorator
- Extended by:
- Deprecation
- Defined in:
- lib/hydra/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.
22 23 24 25 26 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 22 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.
16 17 18 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 16 def mime_type @mime_type end |
#original_filename ⇒ Object Also known as: original_name
Returns the value of attribute original_filename.
16 17 18 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 16 def original_filename @original_filename end |