lib/pricehubble/client/dossiers.rb in pricehubble-0.4.2 vs lib/pricehubble/client/dossiers.rb in pricehubble-1.0.0
- old
+ new
@@ -63,12 +63,11 @@
# Delete a dossier entity.
#
# @param entity [PriceHubble::Dossier] the entity to delete
# @param args [Hash{Symbol => Mixed}] additional arguments
#
- # rubocop:disable Metrics/MethodLength because thats the bare minimum
- # rubocop:disable Metrics/AbcSize because the decission
+ # rubocop:disable Metrics/MethodLength because thats the bare minimumbecause the decission
# handling is quite complex
def delete_dossier(entity, **args)
res = connection.delete do |req|
req.path = "/api/v1/dossiers/#{entity.id}"
use_default_context(req, :delete_dossier)
@@ -80,12 +79,11 @@
assigned_entity.mark_as_destroyed.freeze
end)
successful?(res)
end
end
- # rubocop:enable Metrics/MethodLength
- # rubocop:enable Metrics/AbcSize
+ # rubocop:enable Metrics/MethodLength
# Update a dossier entity.
#
# TODO: Implement this.
#
# @param entity [PriceHubble::Dossier] the entity to update