Method: SkullIsland::APIClientBase#patch
- Defined in:
- lib/skull_island/api_client_base.rb
#patch(uri, data) ⇒ Object
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/skull_island/api_client_base.rb', line 66 def patch(uri, data) client_action do |client| response = client[uri].patch(json_escape(data.to_json), json_headers) if response && !response.empty? JSON.parse(response) else true end end end |