Class: Sheetsu::Create

Inherits:
Request show all
Defined in:
lib/sheetsu/create.rb

Instance Method Summary collapse

Methods inherited from Request

#call, #initialize

Constructor Details

This class inherits a constructor from Sheetsu::Request

Instance Method Details

#row(row, options = {}) ⇒ Object



10
11
12
13
14
15
# File 'lib/sheetsu/create.rb', line 10

def row(row, options={})
  add_options_to_url(options)

  response = call(:post, row)
  parse_response(response)
end

#rows(rows, options = {}) ⇒ Object



17
18
19
20
21
22
# File 'lib/sheetsu/create.rb', line 17

def rows(rows, options={})
  add_options_to_url(options)

  response = call(:post, { rows: rows })
  parse_response(response)
end