class BigShift::UpdateViewCommand
Public Class Methods
new(name, query)
click to toggle source
# File lib/big_shift/commands/update_view_command.rb, line 3 def initialize(name, query) @name = name @query = query end
Public Instance Methods
body()
click to toggle source
# File lib/big_shift/commands/update_view_command.rb, line 16 def body { 'tableReference' => { 'projectId' => project_id, 'datasetId' => dataset_id, 'tableId' => @name, }, 'view': { 'query': @query } } end
endpoint()
click to toggle source
# File lib/big_shift/commands/update_view_command.rb, line 12 def endpoint "tables/#{@name}" end
on_execute()
click to toggle source
# File lib/big_shift/commands/update_view_command.rb, line 8 def on_execute CreateTableResponse.new patch end