Class: SessionHeader

Inherits:
SOAP::Header::SimpleHandler
  • Object
show all
Defined in:
lib/metal/default.rb

Constant Summary collapse

NAMESPACE =
'http://ws.rsys.com'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session_id) ⇒ SessionHeader

Returns a new instance of SessionHeader.



1113
1114
1115
1116
# File 'lib/metal/default.rb', line 1113

def initialize(session_id)
  @session_id = session_id
  super(XSD::QName.new(NAMESPACE, 'Security'))
end

Instance Attribute Details

#session_idObject

Returns the value of attribute session_id.



1111
1112
1113
# File 'lib/metal/default.rb', line 1111

def session_id
  @session_id
end

Instance Method Details

#on_simple_outboundObject



1118
1119
1120
# File 'lib/metal/default.rb', line 1118

def on_simple_outbound
  { sessiondId: @session_id }
end