Class: ActiveShrine::Attached::Changes::PurgeOne
- Inherits:
-
Object
- Object
- ActiveShrine::Attached::Changes::PurgeOne
- Defined in:
- lib/active_shrine/attached/changes/purge_one.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#attachment ⇒ Object
readonly
Returns the value of attribute attachment.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(name, record, attachment) ⇒ PurgeOne
constructor
A new instance of PurgeOne.
- #purge ⇒ Object
- #purge_later ⇒ Object
Constructor Details
#initialize(name, record, attachment) ⇒ PurgeOne
Returns a new instance of PurgeOne.
9 10 11 12 13 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 9 def initialize(name, record, ) @name = name @record = record @attachment = end |
Instance Attribute Details
#attachment ⇒ Object (readonly)
Returns the value of attribute attachment.
7 8 9 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 7 def @attachment end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 7 def name @name end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
7 8 9 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 7 def record @record end |
Instance Method Details
#purge ⇒ Object
15 16 17 18 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 15 def purge &.purge reset end |
#purge_later ⇒ Object
20 21 22 23 |
# File 'lib/active_shrine/attached/changes/purge_one.rb', line 20 def purge_later &.purge_later reset end |