lib/eml/uk/tns/process_request.rb in eml-2.1.0 vs lib/eml/uk/tns/process_request.rb in eml-2.1.1

- old
+ new

@@ -7,26 +7,26 @@ class ProcessRequest extend T::Sig sig do params( - auth_token: String, - parameters: T::Hash[Symbol, T.untyped] + auth_token: T.nilable(String), + parameters: T::Hash[String, T.untyped] ).returns(EML::UK::Models::TNS::Message) end def self.call(auth_token, parameters) new(auth_token, parameters).call end sig do params( - auth_token: String, - parameters: T::Hash[Symbol, T.untyped] + auth_token: T.nilable(String), + parameters: T::Hash[String, T.untyped] ).void end def initialize(auth_token, parameters) - @auth_token = T.let(auth_token, String) - @parameters = T.let(parameters, T::Hash[Symbol, T.untyped]) + @auth_token = T.let(auth_token || "", String) + @parameters = T.let(parameters, T::Hash[String, T.untyped]) @credentials = T.let(nil, T.nilable(T::Hash[Symbol, T.untyped])) end sig { returns(EML::UK::Models::TNS::Message) } def call