spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb in fastlane-2.167.0 vs spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb in fastlane-2.168.0

- old
+ new

@@ -26,16 +26,18 @@ # # API # - def update(attributes: nil) + def update(client: nil, attributes: nil) + client ||= Spaceship::ConnectAPI attributes = reverse_attr_mapping(attributes) - Spaceship::ConnectAPI.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes) + client.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes) end - def delete! - Spaceship::ConnectAPI.delete_idfa_declaration(idfa_declaration_id: id) + def delete!(client: nil) + client ||= Spaceship::ConnectAPI + client.delete_idfa_declaration(idfa_declaration_id: id) end end end end