Skip to content

Commit

Permalink
Ruby 3 KwArgs: fix emis_redis spec (#11955)
Browse files Browse the repository at this point in the history
* fix emis_redis spec

* clean up

* fix var name
  • Loading branch information
holdenhinkle authored Mar 2, 2023
1 parent 994cd9f commit a1141f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/emis/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a1141f4

Please sign in to comment.