Class: BigShift::InsertRowsCommand
- Inherits:
-
BaseTableCommand
- Object
- BaseCommand
- BaseTableCommand
- BigShift::InsertRowsCommand
- Defined in:
- lib/big_shift/commands/insert_rows_command.rb
Instance Attribute Summary
Attributes inherited from BaseTableCommand
Instance Method Summary collapse
- #body ⇒ Object
- #endpoint ⇒ Object
-
#initialize(table_name, rows) ⇒ InsertRowsCommand
constructor
A new instance of InsertRowsCommand.
- #on_execute ⇒ Object
Methods inherited from BaseCommand
Constructor Details
#initialize(table_name, rows) ⇒ InsertRowsCommand
Returns a new instance of InsertRowsCommand.
3 4 5 6 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 3 def initialize(table_name, rows) self.table_id = table_name @rows = rows end |
Instance Method Details
#body ⇒ Object
16 17 18 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 16 def body { :rows => build_rows } end |
#endpoint ⇒ Object
12 13 14 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 12 def endpoint 'insertAll' end |
#on_execute ⇒ Object
8 9 10 |
# File 'lib/big_shift/commands/insert_rows_command.rb', line 8 def on_execute InsertRowsResponse.new post end |