Sha256: 0aaba69913891e5705101d897d12d67903eea449a5c558c9b49d8892c5dde9d5

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents


class InsuredUtilities

  def initialize
  end

  def getPackageTypes()
    reset_service_instance
    #@service.headerhandler <<   ShipmentRequestHeader.new(shipment_request)   # add new headers.
    @service.getPackageTypes(GetPackageTypes.new())
  end

  protected

  def reset_service_instance
    @service = G4s.instance.utilities.service  # must make a new instance each time.
    @service.wiredump_dev=STDERR
    @service.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE
    @service.filterchain << G4sNamespaceFilter.new
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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