Class: Hydra::Derivatives::IoDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hydra::Derivatives::IoDecorator
- Defined in:
- lib/hydra/derivatives/io_decorator.rb
Instance Attribute Summary collapse
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#original_name ⇒ Object
Returns the value of attribute original_name.
Instance Method Summary collapse
-
#initialize(file, mime_type = nil, original_name = nil) ⇒ IoDecorator
constructor
A new instance of IoDecorator.
Constructor Details
#initialize(file, mime_type = nil, original_name = nil) ⇒ IoDecorator
Returns a new instance of IoDecorator.
14 15 16 17 18 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 14 def initialize(file, mime_type = nil, original_name = nil) super(file) self.mime_type = mime_type self.original_name = original_name end |
Instance Attribute Details
#mime_type ⇒ Object
Returns the value of attribute mime_type.
12 13 14 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 12 def mime_type @mime_type end |
#original_name ⇒ Object
Returns the value of attribute original_name.
12 13 14 |
# File 'lib/hydra/derivatives/io_decorator.rb', line 12 def original_name @original_name end |