Method: Cyby::Kintone::RestApi#put
- Defined in:
- lib/cyby/kintone/rest_api.rb
#put(path, body = {}) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/cyby/kintone/rest_api.rb', line 43 def put(path, body = {}) body.merge!(app: @app) = { headers: headers, body: body.to_json } resp = self.class.put(path, ) if resp.code == 200 resp else raise Cyby::Kintone::InvalidRecord.new(resp) end end |