From 5eed367f714368e07467603cc0bd26c5dd7f4228 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 18 Feb 2025 20:13:31 +0000 Subject: [PATCH] Avoid redefining object_id method This fixes a ruby 3.4 warning. --- lib/osm.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/osm.rb b/lib/osm.rb index 46f37036f..6710ee88e 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -51,14 +51,14 @@ module OSM # Raised when to delete an already-deleted object. class APIAlreadyDeletedError < APIError - def initialize(object = "object", object_id = "") - @object = object - @object_id = object_id + def initialize(type = "object", id = "") + @type = type + @id = id - super("The #{object} with the id #{object_id} has already been deleted") + super("The #{type} with the id #{id} has already been deleted") end - attr_reader :object, :object_id + attr_reader :type, :id def status :gone -- 2.39.5