Sha256: be4d3d20625596a12362471671d06b24d7fa1dbe755e0b3a05a384bc01e77167

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

module EgovUtils
  module Iszr
    class Client
      def initialize(message)
        @client = Savon.client(wsdl: config['endpoint'], log: true, log_level: :info, ssl_verify_mode: :none)
        @message = message
      end

      def self.config
        EgovUtils::Settings['iszr']
      end

      def call
        client.call(
          :get_data,
          message: { 'tns:inputXml' => message }
        )
      end

      private

      attr_reader :client, :message
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha4 app/services/egov_utils/iszr/client.rb