Class: Arel::Nodes::NamedWindow
- Defined in:
- lib/arel/nodes/window.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Window
Instance Method Summary collapse
-
#initialize(name) ⇒ NamedWindow
constructor
A new instance of NamedWindow.
- #initialize_copy(other) ⇒ Object
Methods inherited from Window
Methods included from OrderPredications
Methods inherited from Node
#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(name) ⇒ NamedWindow
Returns a new instance of NamedWindow.
41 42 43 44 |
# File 'lib/arel/nodes/window.rb', line 41 def initialize name super() @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/arel/nodes/window.rb', line 39 def name @name end |
Instance Method Details
#initialize_copy(other) ⇒ Object
46 47 48 49 |
# File 'lib/arel/nodes/window.rb', line 46 def initialize_copy other super @name = other.name.clone end |