Class: G4SIAuthHeader

Inherits:
CustomHeader
  • Object
show all
Defined in:
lib/g4s/headers/g4si_auth_header.rb

Constant Summary collapse

NAMESPACE =
'http://WS.G4SI.COM/'

Instance Method Summary collapse

Constructor Details

#initialize(username, password, accessKey) ⇒ G4SIAuthHeader

Returns a new instance of G4SIAuthHeader.



11
12
13
14
# File 'lib/g4s/headers/g4si_auth_header.rb', line 11

def initialize(username, password, accessKey)
  @username, @password, @accessKey = username, password, accessKey
  super(XSD::QName.new(NAMESPACE, 'G4SIAuthentication'))
end

Instance Method Details

#on_simple_outboundObject



16
17
18
# File 'lib/g4s/headers/g4si_auth_header.rb', line 16

def on_simple_outbound
  {"Username" => @username, "Password" => @password, "AccessKey"=>@accessKey}
end