Class: Cash::Query::Calculation
- Defined in:
- lib/cash/query/calculation.rb
Constant Summary
Constants inherited from Abstract
Instance Method Summary collapse
- #calculation? ⇒ Boolean
-
#initialize(active_record, operation, column, options1, options2) ⇒ Calculation
constructor
A new instance of Calculation.
- #perform ⇒ Object
Methods inherited from Abstract
#limit, #offset, #order, perform
Constructor Details
#initialize(active_record, operation, column, options1, options2) ⇒ Calculation
Returns a new instance of Calculation.
6 7 8 9 |
# File 'lib/cash/query/calculation.rb', line 6 def initialize(active_record, operation, column, , ) super(active_record, , ) @operation, @column = operation, column end |
Instance Method Details
#calculation? ⇒ Boolean
15 16 17 |
# File 'lib/cash/query/calculation.rb', line 15 def calculation? true end |
#perform ⇒ Object
11 12 13 |
# File 'lib/cash/query/calculation.rb', line 11 def perform super({}, :raw => true) end |