Class: G4SIAuthHeader
- Inherits:
-
CustomHeader
- Object
- SOAP::Header::SimpleHandler
- CustomHeader
- G4SIAuthHeader
- Defined in:
- lib/g4s/headers/g4si_auth_header.rb
Constant Summary collapse
- NAMESPACE =
'http://WS.G4SI.COM/'
Instance Method Summary collapse
-
#initialize(username, password, accessKey) ⇒ G4SIAuthHeader
constructor
A new instance of G4SIAuthHeader.
- #on_simple_outbound ⇒ Object
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_outbound ⇒ Object
16 17 18 |
# File 'lib/g4s/headers/g4si_auth_header.rb', line 16 def on_simple_outbound {"Username" => @username, "Password" => @password, "AccessKey"=>@accessKey} end |