Class: Arel::Nodes::UpdateStatement
- Defined in:
- lib/arel/nodes/update_statement.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#orders ⇒ Object
Returns the value of attribute orders.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#values ⇒ Object
Returns the value of attribute values.
-
#wheres ⇒ Object
Returns the value of attribute wheres.
Instance Method Summary collapse
-
#initialize ⇒ UpdateStatement
constructor
A new instance of UpdateStatement.
- #initialize_copy(other) ⇒ Object
Methods inherited from Node
#and, #each, #not, #or, #to_sql
Constructor Details
#initialize ⇒ UpdateStatement
Returns a new instance of UpdateStatement.
6 7 8 9 10 11 12 |
# File 'lib/arel/nodes/update_statement.rb', line 6 def initialize @relation = nil @wheres = [] @values = [] @orders = [] @limit = nil end |
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def limit @limit end |
#orders ⇒ Object
Returns the value of attribute orders.
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def orders @orders end |
#relation ⇒ Object
Returns the value of attribute relation.
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def relation @relation end |
#values ⇒ Object
Returns the value of attribute values.
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def values @values end |
#wheres ⇒ Object
Returns the value of attribute wheres.
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def wheres @wheres end |
Instance Method Details
#initialize_copy(other) ⇒ Object
14 15 16 17 18 |
# File 'lib/arel/nodes/update_statement.rb', line 14 def initialize_copy other super @wheres = @wheres.clone @values = @values.clone end |