Class: ObjectStorage::Concern::OpenFile

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
app/uploaders/object_storage.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ OpenFile

Returns a new instance of OpenFile.



271
272
273
# File 'app/uploaders/object_storage.rb', line 271

def initialize(file)
  @file = file
end

Instance Method Details

#file_pathObject



275
276
277
# File 'app/uploaders/object_storage.rb', line 275

def file_path
  @file.path
end