Class: ActiveRecord::Materialized::WriteOutbox::Triggers::Op
- Inherits:
-
Data
- Object
- Data
- ActiveRecord::Materialized::WriteOutbox::Triggers::Op
- Defined in:
- lib/activerecord/materialized/write_outbox.rb
Overview
One operation's contribution to a trigger: the identifier suffix, the DML event, the ActiveRecord::Materialized::WriteChange operation name, and the already-built +key_before+/+key_after+ SQL expressions (a JSON constructor or the literal "NULL"). Bundled as a value object so the per-op single-trigger dialects (SQLite/MySQL) share one construction path.
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#before ⇒ Object
readonly
Returns the value of attribute before.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#suffix ⇒ Object
readonly
Returns the value of attribute suffix.
Instance Attribute Details
#after ⇒ Object (readonly)
Returns the value of attribute after
196 197 198 |
# File 'lib/activerecord/materialized/write_outbox.rb', line 196 def after @after end |
#before ⇒ Object (readonly)
Returns the value of attribute before
196 197 198 |
# File 'lib/activerecord/materialized/write_outbox.rb', line 196 def before @before end |
#event ⇒ Object (readonly)
Returns the value of attribute event
196 197 198 |
# File 'lib/activerecord/materialized/write_outbox.rb', line 196 def event @event end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation
196 197 198 |
# File 'lib/activerecord/materialized/write_outbox.rb', line 196 def operation @operation end |
#suffix ⇒ Object (readonly)
Returns the value of attribute suffix
196 197 198 |
# File 'lib/activerecord/materialized/write_outbox.rb', line 196 def suffix @suffix end |