Module: Adrift::FileToAttach::Adapter
- Included in:
- Adrift::FileToAttach::Adapters::LocalFile, Adrift::FileToAttach::Adapters::Rack, Adrift::FileToAttach::Adapters::Rails
- Defined in:
- lib/adrift/file_to_attach.rb
Overview
Common adapter behaviour for the files who will be attached.
Instance Method Summary collapse
-
#initialize(file_representation) ⇒ Object
Creates a new Adapter for the
file_representation
.
Instance Method Details
#initialize(file_representation) ⇒ Object
Creates a new Adapter for the file_representation
.
12 13 14 |
# File 'lib/adrift/file_to_attach.rb', line 12 def initialize(file_representation) @file_representation = file_representation end |