Class: BigShift::InsertRowsCommand

Inherits:
BaseTableCommand show all
Defined in:
lib/big_shift/commands/insert_rows_command.rb

Class Method Summary collapse

Class Method Details

.bodyObject



14
15
16
# File 'lib/big_shift/commands/insert_rows_command.rb', line 14

def body
  { :rows => build_rows }
end

.endpointObject



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