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.



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_typeObject

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_filenameObject 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