Class: StandardLedger::Projector::Definition

Inherits:
Struct
  • Object
show all
Defined in:
lib/standard_ledger/projector.rb

Overview

Captures the per-projection configuration declared by ‘projects_onto`. Stored on the entry class so `StandardLedger.post` and `StandardLedger.rebuild!` can iterate over them at runtime.

‘:view` and `:refresh_options` are populated only for `:matview`-mode projections; they’re ‘nil` for every other mode.

Instance Attribute Summary collapse

Instance Attribute Details

#guardObject

Returns the value of attribute guard

Returns:

  • (Object)

    the current value of guard



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def guard
  @guard
end

#handlersObject

Returns the value of attribute handlers

Returns:

  • (Object)

    the current value of handlers



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def handlers
  @handlers
end

#lockObject

Returns the value of attribute lock

Returns:

  • (Object)

    the current value of lock



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def lock
  @lock
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def mode
  @mode
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def options
  @options
end

#permissiveObject

Returns the value of attribute permissive

Returns:

  • (Object)

    the current value of permissive



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def permissive
  @permissive
end

#projector_classObject

Returns the value of attribute projector_class

Returns:

  • (Object)

    the current value of projector_class



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def projector_class
  @projector_class
end

#recompute_sqlObject

Returns the value of attribute recompute_sql

Returns:

  • (Object)

    the current value of recompute_sql



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def recompute_sql
  @recompute_sql
end

#refresh_optionsObject

Returns the value of attribute refresh_options

Returns:

  • (Object)

    the current value of refresh_options



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def refresh_options
  @refresh_options
end

#target_associationObject

Returns the value of attribute target_association

Returns:

  • (Object)

    the current value of target_association



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def target_association
  @target_association
end

#trigger_nameObject

Returns the value of attribute trigger_name

Returns:

  • (Object)

    the current value of trigger_name



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def trigger_name
  @trigger_name
end

#viewObject

Returns the value of attribute view

Returns:

  • (Object)

    the current value of view



35
36
37
# File 'lib/standard_ledger/projector.rb', line 35

def view
  @view
end