Class: Hecks::Bluebook::ProjectedField

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/hecks/bluebook/aggregate.rb', line 14

def name
  @name
end

#referenceObject

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



14
15
16
# File 'lib/hecks/bluebook/aggregate.rb', line 14

def reference
  @reference
end

#remote_fieldObject

Returns the value of attribute remote_field

Returns:

  • (Object)

    the current value of remote_field



14
15
16
# File 'lib/hecks/bluebook/aggregate.rb', line 14

def remote_field
  @remote_field
end