Class: ActiveStorage::Attached::Changes::PurgeMany
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activestorage/lib/active_storage/attached/changes/purge_many.rb |
Class Method Summary
- .new(name, record, attachments) ⇒ PurgeMany constructor
Instance Attribute Summary
- #attachments readonly
- #name readonly
- #record readonly
Instance Method Summary
- #purge
- #purge_later
- #reset private
Constructor Details
.new(name, record, attachments) ⇒ PurgeMany
Instance Attribute Details
#attachments (readonly)
[ GitHub ]#name (readonly)
[ GitHub ]# File 'activestorage/lib/active_storage/attached/changes/purge_many.rb', line 5
attr_reader :name, :record, :
#record (readonly)
[ GitHub ]# File 'activestorage/lib/active_storage/attached/changes/purge_many.rb', line 5
attr_reader :name, :record, :
Instance Method Details
#purge
[ GitHub ]# File 'activestorage/lib/active_storage/attached/changes/purge_many.rb', line 11
def purge .each(&:purge) reset end
#purge_later
[ GitHub ]# File 'activestorage/lib/active_storage/attached/changes/purge_many.rb', line 16
def purge_later .each(&:purge_later) reset end