Class: Sequel::SQL::WindowFunction
- Inherits:
-
Expression
- Object
- Expression
- Sequel::SQL::WindowFunction
- Defined in:
- lib/sequel/sql.rb
Overview
A WindowFunction is a grouping of a function with a window over which it operates.
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
The function to use, should be an SQL::Function.
-
#window ⇒ Object
readonly
The window to use, should be an SQL::Window.
Instance Method Summary collapse
-
#initialize(function, window) ⇒ WindowFunction
constructor
Set the function and window.
Methods inherited from Expression
Constructor Details
#initialize(function, window) ⇒ WindowFunction
Set the function and window.
899 900 901 |
# File 'lib/sequel/sql.rb', line 899 def initialize(function, window) @function, @window = function, window end |
Instance Attribute Details
#function ⇒ Object (readonly)
The function to use, should be an SQL::Function.
893 894 895 |
# File 'lib/sequel/sql.rb', line 893 def function @function end |
#window ⇒ Object (readonly)
The window to use, should be an SQL::Window.
896 897 898 |
# File 'lib/sequel/sql.rb', line 896 def window @window end |