Sha256: c32bee91e00a5631dea939f001008bcc643c54618517aeee0f0302b988676df2

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

require 'soap/header/simplehandler'

class CommodityListHeader <  CustomHeader

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

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

  def on_simple_outbound
    to_hash(@commodity_list)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
g4s_client-0.2.1 lib/g4s/headers/commodity_list_header.rb
g4s_client-0.2.0 lib/g4s/headers/commodity_list_header.rb
g4s_client-0.1.7 lib/g4s/headers/commodity_list_header.rb