class Arel::Nodes::InsertStatement

Attributes

columns[RW]
relation[RW]
select[RW]
values[RW]

Public Class Methods

new() click to toggle source
Calls superclass method Arel::Nodes::Node.new
# File lib/arel/nodes/insert_statement.rb, line 6
def initialize
  super()
  @relation = nil
  @columns  = []
  @values   = nil
  @select   = nil
end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/insert_statement.rb, line 25
def eql? other
  self.class == other.class &&
    self.relation == other.relation &&
    self.columns == other.columns &&
    self.select == other.select &&
    self.values == other.values
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/insert_statement.rb, line 21
def hash
  [@relation, @columns, @values, @select].hash
end
initialize_copy(other) click to toggle source
Calls superclass method
# File lib/arel/nodes/insert_statement.rb, line 14
def initialize_copy other
  super
  @columns = @columns.clone
  @values =  @values.clone if @values
  @select =  @select.clone if @select
end