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

- old
+ new

@@ -9,11 +9,11 @@ sig do params( auth_token: String, parameters: T::Hash[Symbol, T.untyped] - ).returns(EML::UK::TNS::Response) + ).returns(EML::UK::Models::TNS::Message) end def self.call(auth_token, parameters) new(auth_token, parameters).call end @@ -22,17 +22,18 @@ auth_token: String, parameters: T::Hash[Symbol, T.untyped] ).void end def initialize(auth_token, parameters) - @auth_token = auth_token - @parameters = parameters + @auth_token = T.let(auth_token, String) + @parameters = T.let(parameters, T::Hash[Symbol, T.untyped]) + @credentials = T.let(nil, T.nilable(T::Hash[Symbol, T.untyped])) end - sig { returns(EML::UK::TNS::Response) } + sig { returns(EML::UK::Models::TNS::Message) } def call verify_auth_token - EML::UK::TNS::Response.new(@parameters) + EML::UK::Models::TNS::Message.new(@parameters) end private sig { void }