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