Class: Sheetsu::Update

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

Instance Method Summary collapse

Methods inherited from Request

#call, #initialize

Constructor Details

This class inherits a constructor from Sheetsu::Request

Instance Method Details

#patch(options) ⇒ Object



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

def patch(options)
  add_options_to_url(options)

  response = call(:patch, options[:data])
  parse_response(response)
end

#put(options) ⇒ Object



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

def put(options)
  add_options_to_url(options)

  response = call(:put, options[:data])
  parse_response(response)
end