Class: Hydra::Derivatives::IoDecorator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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_nameObject

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