class Arel::Nodes::InsertStatement - arel-4.0.2 Documentation

# class Arel::Nodes::InsertStatement

### Attributes

columns[RW]
relation[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
    end

### Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source

    # File lib/arel/nodes/insert_statement.rb, line 23
    def eql? other
      self.class == other.class &&
        self.relation == other.relation &&
        self.columns == other.columns &&
        self.values == other.values
    end

Also aliased as: ==
hash() click to toggle source

    # File lib/arel/nodes/insert_statement.rb, line 19
    def hash
      [@relation, @columns, @values].hash
    end

initialize_copy(other) click to toggle source
Calls superclass method

    # File lib/arel/nodes/insert_statement.rb, line 13
    def initialize_copy other
      super
      @columns = @columns.clone
      @values =  @values.clone if @values
    end