Class: ActiveRecord::Materialized::AggregateAnalysis::Column Private

Inherits:
Data
  • Object
show all
Defined in:
lib/activerecord/materialized/aggregate_analysis.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

One classified aggregate column from a view's projection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, function:, attribute: nil, counts_rows: false) ⇒ Column

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Column.



16
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 16

def initialize(name:, function:, attribute: nil, counts_rows: false) = super

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



15
16
17
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15

def attribute
  @attribute
end

#counts_rowsObject (readonly)

Returns the value of attribute counts_rows

Returns:

  • (Object)

    the current value of counts_rows



15
16
17
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15

def counts_rows
  @counts_rows
end

#functionObject (readonly)

Returns the value of attribute function

Returns:

  • (Object)

    the current value of function



15
16
17
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15

def function
  @function
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15

def name
  @name
end