From a1141f43a4c2feebd649e0325999f1f10439fa4b Mon Sep 17 00:00:00 2001 From: Holden Hinkle Date: Thu, 2 Mar 2023 15:35:11 -0500 Subject: [PATCH] Ruby 3 KwArgs: fix emis_redis spec (#11955) * fix emis_redis spec * clean up * fix var name --- lib/emis/service.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/emis/service.rb b/lib/emis/service.rb index c7061df7a32..6fa707c0eac 100644 --- a/lib/emis/service.rb +++ b/lib/emis/service.rb @@ -25,7 +25,9 @@ class Service < Common::Client::Base def self.create_endpoints(endpoints) endpoints.each do |endpoint| operation, request_name, version = get_endpoint_attributes(endpoint) - define_method(operation) do |edipi: nil, icn: nil| + define_method(operation) do |options| + edipi, icn = options.values_at(:edipi, :icn) + parameters = { edipi: edipi, icn: icn,