Sha256: aa336bc800155004870a6d95e7627546dfa9cf961123c50609f850d25074a1cb

Contents?: true

Size: 537 Bytes

Versions: 12

Compression:

Stored size: 537 Bytes

Contents

module Imasei

  require "singleton"

  class Connection

    include Singleton

    def client
      @client ||= Savon.client wsdl: Imasei.configuration.wsdl, follow_redirects: Imasei.configuration.follow_redirects,
                                pretty_print_xml: Imasei.configuration.pretty_print_xml, convert_request_keys_to: :camelcase
    end

    def call(service, message)
      request = client.build_request service, message: message
      Imasei::Printer.xp request.body
      client.call service, message
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
imasei-0.2.7 lib/imasei/connection.rb
imasei-0.2.6 lib/imasei/connection.rb
imasei-0.2.5 lib/imasei/connection.rb
imasei-0.2.4 lib/imasei/connection.rb
imasei-0.2.3 lib/imasei/connection.rb
imasei-0.2.2 lib/imasei/connection.rb
imasei-0.2.1 lib/imasei/connection.rb
imasei-0.2.0 lib/imasei/connection.rb
imasei-0.1.9 lib/imasei/connection.rb
imasei-0.1.8 lib/imasei/connection.rb
imasei-0.1.7 lib/imasei/connection.rb
imasei-0.1.6 lib/imasei/connection.rb