Class: Hecks::Bluebook::ProjectedField
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Bluebook::ProjectedField
- Defined in:
- lib/hecks/bluebook/aggregate.rb
Overview
A FIELD READ THROUGH A reference_to, HELD LOCALLY (S12, ADR 0025
— "Consistency across aggregate boundaries") — projects :customer_status, from: :"customer.status" declares that this
aggregate's own :customer_status is a COPY of the target's own
:status, kept fresh by a rebuild sweep rather than read live at
rule-evaluation time. reference names the LOCAL reference
attribute to walk through (:customer, minted by this
aggregate's own reference_to Customer); remote_field names
the SCALAR on the target aggregate to copy.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#remote_field ⇒ Object
Returns the value of attribute remote_field.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
14 15 16 |
# File 'lib/hecks/bluebook/aggregate.rb', line 14 def name @name end |
#reference ⇒ Object
Returns the value of attribute reference
14 15 16 |
# File 'lib/hecks/bluebook/aggregate.rb', line 14 def reference @reference end |
#remote_field ⇒ Object
Returns the value of attribute remote_field
14 15 16 |
# File 'lib/hecks/bluebook/aggregate.rb', line 14 def remote_field @remote_field end |