Class: EML::UK::TNS::ProcessRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/eml/uk/tns/process_request.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_token, parameters) ⇒ ProcessRequest

Returns a new instance of ProcessRequest.



26
27
28
29
30
# File 'lib/eml/uk/tns/process_request.rb', line 26

def initialize(auth_token, parameters)
  @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

Class Method Details

.call(auth_token, parameters) ⇒ Object



16
17
18
# File 'lib/eml/uk/tns/process_request.rb', line 16

def self.call(auth_token, parameters)
  new(auth_token, parameters).call
end

Instance Method Details

#callObject



33
34
35
36
# File 'lib/eml/uk/tns/process_request.rb', line 33

def call
  verify_auth_token
  EML::UK::Models::TNS::Message.new(@parameters)
end