Class: Hecks::Bluebook::TranslationCompute

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/bluebook/translation.rb

Overview

A computed transform — rescale, reformat, split, merge — whose only implementation is the SQL expression itself, evaluated exclusively inside the compiled Postgres head. No in-process reference exists to check it against; any aggregate carrying one refuses to boot on every other adapter.

Instance Attribute Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



27
28
29
# File 'lib/hecks/bluebook/translation.rb', line 27

def from
  @from
end

#sqlObject

Returns the value of attribute sql

Returns:

  • (Object)

    the current value of sql



27
28
29
# File 'lib/hecks/bluebook/translation.rb', line 27

def sql
  @sql
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



27
28
29
# File 'lib/hecks/bluebook/translation.rb', line 27

def to
  @to
end