Class: TableSaw::Queries::ExecuteInsertStatement
- Inherits:
-
Object
- Object
- TableSaw::Queries::ExecuteInsertStatement
- Defined in:
- lib/table_saw/queries/execute_insert_statement.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(statement, row) ⇒ ExecuteInsertStatement
constructor
A new instance of ExecuteInsertStatement.
Constructor Details
#initialize(statement, row) ⇒ ExecuteInsertStatement
Returns a new instance of ExecuteInsertStatement.
8 9 10 11 |
# File 'lib/table_saw/queries/execute_insert_statement.rb', line 8 def initialize(statement, row) @statement = statement @row = row end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
6 7 8 |
# File 'lib/table_saw/queries/execute_insert_statement.rb', line 6 def row @row end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
6 7 8 |
# File 'lib/table_saw/queries/execute_insert_statement.rb', line 6 def statement @statement end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/table_saw/queries/execute_insert_statement.rb', line 13 def call "EXECUTE #{statement.name}(#{values});" end |