Class: Petra::Components::Entries::ObjectDestruction

Inherits:
LogEntry
  • Object
show all
Defined in:
lib/petra/components/entries/object_destruction.rb

Instance Attribute Summary

Attributes inherited from LogEntry

#attribute, #object_class, #object_persisted, #persist_on_retry, #section, #transaction_persisted

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LogEntry

#<=>, #attribute_change?, #attribute_read?, #enqueue_for_persisting!, #for_object?, from_hash, #initialize, #kind?, #load_proxy, log!, #mark_as_object_persisted!, #mark_as_persisted!, #marked_for_destruction?, #object_initialization?, #object_persistence?, #persist?, #persist_on_retry?, #to_h, #to_s, #undo!

Methods included from Util::FieldAccessors

#[], #[]=, #fields, included

Methods included from Util::Registrable

included

Constructor Details

This class inherits a constructor from Petra::Components::LogEntry

Class Method Details

.kindObject



9
10
11
# File 'lib/petra/components/entries/object_destruction.rb', line 9

def self.kind
  :object_destruction
end

Instance Method Details

#apply!Object



13
14
15
16
# File 'lib/petra/components/entries/object_destruction.rb', line 13

def apply!
  # TODO: React to `false` responses from destruction methods?
  proxied_object.send(method)
end