Method: Sheetsu::Client#update

Defined in:
lib/sheetsu.rb

#update(column, value, data, update_whole = false, sheet = nil) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/sheetsu.rb', line 27

def update(column, value, data, update_whole=false, sheet=nil)
  options = { column: column, value: value, data: data, update_whole: update_whole, sheet: sheet }

  if update_whole
    Sheetsu::Update.new(@api_url, @http_basic_auth).put(options)
  else
    Sheetsu::Update.new(@api_url, @http_basic_auth).patch(options)
  end
end