class Arel::Nodes::UpdateStatement

Attributes

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

Public Instance Methods

==(other) click to toggle source
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/update_statement.rb, line 27
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 23
def hash
  [@relation, @wheres, @values, @orders, @limit, @key].hash
end
initialize_copy(other) click to toggle source
# File lib/arel/nodes/update_statement.rb, line 17
def initialize_copy other
  super
  @wheres = @wheres.clone
  @values = @values.clone
end

Public Class Methods

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