From 460c999992ed17be676ef29b3bc5a75b005ddf7c Mon Sep 17 00:00:00 2001 From: Matt Muller Date: Mon, 22 Jul 2024 13:13:41 -0400 Subject: [PATCH] Add == method for auth scheme --- hearth/lib/hearth/endpoint_rules.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hearth/lib/hearth/endpoint_rules.rb b/hearth/lib/hearth/endpoint_rules.rb index 2cb9d420f..a62e373af 100644 --- a/hearth/lib/hearth/endpoint_rules.rb +++ b/hearth/lib/hearth/endpoint_rules.rb @@ -26,6 +26,11 @@ def initialize(scheme_id:, properties: {}) # Additional properties of the authentication scheme. # @return [Hash] attr_accessor :properties + + # @return [Boolean] + def ==(other) + scheme_id == other.scheme_id && properties == other.properties + end end # An Endpoint resolved by an EndpointProvider