Class: Wings::FileMetadataBuilder::IoDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Wings::FileMetadataBuilder::IoDecorator
- Defined in:
- lib/wings/services/file_metadata_builder.rb
Overview
Class for wrapping the file being ingested
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
-
#tempfile ⇒ Object
readonly
Returns the value of attribute tempfile.
-
#use ⇒ Object
readonly
Returns the value of attribute use.
Instance Method Summary collapse
-
#initialize(io, original_filename, content_type, content_length, use) ⇒ IoDecorator
constructor
A new instance of IoDecorator.
Constructor Details
#initialize(io, original_filename, content_type, content_length, use) ⇒ IoDecorator
Returns a new instance of IoDecorator.
77 78 79 80 81 82 83 84 |
# File 'lib/wings/services/file_metadata_builder.rb', line 77 def initialize(io, original_filename, content_type, content_length, use) @original_filename = original_filename @content_type = content_type @length = content_length @use = use @tempfile = io super(io) end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
71 72 73 |
# File 'lib/wings/services/file_metadata_builder.rb', line 71 def content_type @content_type end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
71 72 73 |
# File 'lib/wings/services/file_metadata_builder.rb', line 71 def length @length end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
71 72 73 |
# File 'lib/wings/services/file_metadata_builder.rb', line 71 def original_filename @original_filename end |
#tempfile ⇒ Object (readonly)
Returns the value of attribute tempfile.
71 72 73 |
# File 'lib/wings/services/file_metadata_builder.rb', line 71 def tempfile @tempfile end |
#use ⇒ Object (readonly)
Returns the value of attribute use.
71 72 73 |
# File 'lib/wings/services/file_metadata_builder.rb', line 71 def use @use end |