Class: BPL::Derivatives::IoDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/bpl/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.



9
10
11
12
13
# File 'lib/bpl/derivatives/io_decorator.rb', line 9

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.



5
6
7
# File 'lib/bpl/derivatives/io_decorator.rb', line 5

def mime_type
  @mime_type
end

#original_filenameObject Also known as: original_name

Returns the value of attribute original_filename.



5
6
7
# File 'lib/bpl/derivatives/io_decorator.rb', line 5

def original_filename
  @original_filename
end