Class: ActiveRecord::Materialized::AggregateAnalysis::Column Private
- Inherits:
-
Data
- Object
- Data
- ActiveRecord::Materialized::AggregateAnalysis::Column
- 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
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#counts_rows ⇒ Object
readonly
Returns the value of attribute counts_rows.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, function:, attribute: nil, counts_rows: false) ⇒ Column
constructor
private
A new instance of Column.
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
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute
15 16 17 |
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15 def attribute @attribute end |
#counts_rows ⇒ Object (readonly)
Returns the value of attribute counts_rows
15 16 17 |
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15 def counts_rows @counts_rows end |
#function ⇒ Object (readonly)
Returns the value of attribute function
15 16 17 |
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15 def function @function end |
#name ⇒ Object (readonly)
Returns the value of attribute name
15 16 17 |
# File 'lib/activerecord/materialized/aggregate_analysis.rb', line 15 def name @name end |