Class: Pageflow::PaperclipProcessors::AudioWaveform Private

Inherits:
Paperclip::Processor
  • Object
show all
Defined in:
lib/pageflow/paperclip_processors/audio_waveform.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#makeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
10
11
12
13
14
# File 'lib/pageflow/paperclip_processors/audio_waveform.rb', line 7

def make
  destination = make_tempfile_for(file.path)

  generate_peak_data(input: file.path,
                     output: destination.path)

  destination
end