Class: Arel::Nodes::InsertStatement
- Defined in:
- lib/arel/nodes/insert_statement.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize ⇒ InsertStatement
constructor
A new instance of InsertStatement.
- #initialize_copy(other) ⇒ Object
Methods inherited from Node
#and, #each, #not, #or, #to_sql
Methods included from FactoryMethods
#create_and, #create_join, #create_on, #create_string_join, #create_table_alias, #grouping, #lower
Constructor Details
#initialize ⇒ InsertStatement
Returns 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
#columns ⇒ Object
Returns the value of attribute columns.
4 5 6 |
# File 'lib/arel/nodes/insert_statement.rb', line 4 def columns @columns end |
#relation ⇒ Object
Returns the value of attribute relation.
4 5 6 |
# File 'lib/arel/nodes/insert_statement.rb', line 4 def relation @relation end |
#values ⇒ Object
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
#initialize_copy(other) ⇒ Object
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 |