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