class Arel::Nodes::UpdateStatement

Attributes

key[RW]
limit[RW]
orders[RW]
relation[RW]
values[RW]
wheres[RW]

Public Class Methods

new() click to toggle source
# File lib/arel/nodes/update_statement.rb, line 7
def initialize
  @relation = nil
  @wheres   = []
  @values   = []
  @orders   = []
  @limit    = nil
  @key      = nil
end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/update_statement.rb, line 26
def eql? other
  self.class == other.class &&
    self.relation == other.relation &&
    self.wheres == other.wheres &&
    self.values == other.values &&
    self.orders == other.orders &&
    self.limit == other.limit &&
    self.key == other.key
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/update_statement.rb, line 22
def hash
  [@relation, @wheres, @values, @orders, @limit, @key].hash
end
initialize_copy(other) click to toggle source
Calls superclass method
# File lib/arel/nodes/update_statement.rb, line 16
def initialize_copy other
  super
  @wheres = @wheres.clone
  @values = @values.clone
end