Class: Arel::Nodes::UpdateStatement
- Inherits:
-
Node
- Object
- Node
- Arel::Nodes::UpdateStatement
- Defined in:
- lib/arel/nodes/update_statement.rb
Instance Attribute Summary (collapse)
-
- (Object) key
Returns the value of attribute key.
-
- (Object) limit
Returns the value of attribute limit.
-
- (Object) orders
Returns the value of attribute orders.
-
- (Object) relation
Returns the value of attribute relation.
-
- (Object) values
Returns the value of attribute values.
-
- (Object) wheres
Returns the value of attribute wheres.
Instance Method Summary (collapse)
-
- (UpdateStatement) initialize
constructor
A new instance of UpdateStatement.
- - (Object) initialize_copy(other)
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
- (UpdateStatement) initialize
A new instance of UpdateStatement
7 8 9 10 11 12 13 14 |
# File 'lib/arel/nodes/update_statement.rb', line 7 def initialize @relation = nil @wheres = [] @values = [] @orders = [] @limit = nil @key = nil end |
Instance Attribute Details
- (Object) key
Returns the value of attribute key
5 6 7 |
# File 'lib/arel/nodes/update_statement.rb', line 5 def key @key end |
- (Object) limit
Returns the value of attribute limit
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def limit @limit end |
- (Object) orders
Returns the value of attribute orders
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def orders @orders end |
- (Object) relation
Returns the value of attribute relation
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def relation @relation end |
- (Object) values
Returns the value of attribute values
4 5 6 |
# File 'lib/arel/nodes/update_statement.rb', line 4 def values @values end |
- (Object) wheres
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
- (Object) initialize_copy(other)
16 17 18 19 20 |
# File 'lib/arel/nodes/update_statement.rb', line 16 def initialize_copy other super @wheres = @wheres.clone @values = @values.clone end |