Class: Petra::Components::Entries::ObjectPersistence

Inherits:
LogEntry
  • Object
show all
Defined in:
lib/petra/components/entries/object_persistence.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



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

def self.kind
  :object_persistence
end

Instance Method Details

#apply!Object



18
19
20
# File 'lib/petra/components/entries/object_persistence.rb', line 18

def apply!
  proxied_object.send(method, *(args || []))
end