Class: ArGroupByExpressionEvaluator
- Inherits:
-
ActiveRecordExpressionEvaluator
- Object
- ExpressionEvaluator
- ActiveRecordExpressionEvaluator
- ArGroupByExpressionEvaluator
- Defined in:
- lib/providers/active_record/active_record_expression_evaluator.rb
Instance Attribute Summary collapse
-
#group_by ⇒ Object
readonly
Returns the value of attribute group_by.
-
#grouping_var ⇒ Object
readonly
Returns the value of attribute grouping_var.
Attributes inherited from ActiveRecordExpressionEvaluator
Instance Method Summary collapse
Methods inherited from ActiveRecordExpressionEvaluator
#initialize, #visit_arg, #visit_argslist, #visit_array, #visit_binary, #visit_call, #visit_integer, #visit_statements, #visit_string, #visit_variable
Methods inherited from ExpressionEvaluator
#initialize, #visit_arg, #visit_float, #visit_integer, #visit_statements, #visit_string, #visit_stringcontent, #visit_symbol, #visit_unary, #visit_variable
Constructor Details
This class inherits a constructor from ActiveRecordExpressionEvaluator
Instance Attribute Details
#group_by ⇒ Object (readonly)
Returns the value of attribute group_by.
52 53 54 |
# File 'lib/providers/active_record/active_record_expression_evaluator.rb', line 52 def group_by @group_by end |
#grouping_var ⇒ Object (readonly)
Returns the value of attribute grouping_var.
52 53 54 |
# File 'lib/providers/active_record/active_record_expression_evaluator.rb', line 52 def grouping_var @grouping_var end |
Instance Method Details
#visit_hash(node) ⇒ Object
53 54 55 56 57 |
# File 'lib/providers/active_record/active_record_expression_evaluator.rb', line 53 def visit_hash(node) @grouping_var = node.first.value.visit(self) @group_by = node.first.key.visit(self) @group_by end |