Class: Hydra::Derivatives::IoDecorator

Inherits:
SimpleDelegator
  • Object
show all
Extended by:
Deprecation
Defined in:
lib/hydra/derivatives/io_decorator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, mime_type = nil, original_filename = nil) ⇒ IoDecorator

Returns a new instance of IoDecorator.



21
22
23
24
25
# File 'lib/hydra/derivatives/io_decorator.rb', line 21

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_typeObject

Returns the value of attribute mime_type.



15
16
17
# File 'lib/hydra/derivatives/io_decorator.rb', line 15

def mime_type
  @mime_type
end

#original_filenameObject Also known as: original_name

Returns the value of attribute original_filename.



15
16
17
# File 'lib/hydra/derivatives/io_decorator.rb', line 15

def original_filename
  @original_filename
end