lib/agx/sync/client.rb in agx-0.2.5 vs lib/agx/sync/client.rb in agx-0.2.6

- old
+ new

@@ -64,9 +64,22 @@ rescue => e handle_error(e) end end + def put(resource, body) + validate_sync_attributes + + url = "#{@api_url}#{resource}?transactionId=#{@transaction_id}" + + begin + response = current_token.put(url, {:body => body, :headers => @headers}) + parse_response(response.body) + rescue => e + handle_error(e) + end + end + def start_transaction validate_credentials if !@transaction_id.nil? end_transaction