Class: DelayedImageProcessor

Inherits:
Struct
  • Object
show all
Defined in:
app/models/delayed_image_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attached_fileObject

Returns the value of attribute attached_file

Returns:

  • (Object)

    the current value of attached_file



1
2
3
# File 'app/models/delayed_image_processor.rb', line 1

def attached_file
  @attached_file
end

Instance Method Details

#performObject



2
3
4
5
# File 'app/models/delayed_image_processor.rb', line 2

def perform
  attached_file.build_base_images
  recalculate_storage_counters!
end