Class: YSM::Service::HeaderHandler

Inherits:
SOAP::Header::SimpleHandler
  • Object
show all
Defined in:
lib/ysm4r/service.rb

Instance Method Summary collapse

Constructor Details

#initialize(tag, value) ⇒ HeaderHandler

Returns a new instance of HeaderHandler.



23
24
25
26
27
# File 'lib/ysm4r/service.rb', line 23

def initialize(tag, value)
  super(XSD::QName.new(nil, tag))
  @tag = tag
  @value = value
end

Instance Method Details

#on_simple_outboundObject

The initial handler from the sample was wrong, it generated 2 level of tags



31
32
33
# File 'lib/ysm4r/service.rb', line 31

def on_simple_outbound
  @value
end