Class: Arel::Nodes::Over

Inherits:
Binary show all
Includes:
AliasPredication
Defined in:
lib/arel/nodes/over.rb

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods included from AliasPredication

#as

Methods inherited from Binary

#eql?, #hash, #initialize_copy

Methods inherited from Node

#_caller, #and, #each, #not, #or, #to_sql

Methods included from FactoryMethods

#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower

Constructor Details

#initialize(left, right = nil) ⇒ Over

Returns a new instance of Over.



8
9
10
# File 'lib/arel/nodes/over.rb', line 8

def initialize(left, right = nil)
  super(left, right)
end

Instance Method Details

#operatorObject



12
# File 'lib/arel/nodes/over.rb', line 12

def operator; 'OVER' end