Class: BigShift::InsertRowsCommand
- Inherits:
-
BaseTableCommand
- Object
- BaseCommand
- BaseTableCommand
- BigShift::InsertRowsCommand
- Defined in:
- lib/big_shift/commands/insert_rows_command.rb
Class Method Summary collapse
Class Method Details
.body ⇒ Object
14 15 16 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 14 def body { :rows => build_rows } end |
.endpoint ⇒ Object
10 11 12 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 10 def endpoint 'insertAll' end |
.execute(table_name, rows) ⇒ Object
4 5 6 7 8 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 4 def execute(table_name, rows) @rows = rows self.table_id = table_name InsertRowsResponse.new post end |