Sha256: d1975fe18ab55f59ab81dc8233e57bed76700599b0e18fa1515d9be95aa3f469

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

module Trackerific
  require 'savon'
  
  module SoapClient
    def soap_client
      return @soap_client unless @soap_client.nil?
      wsdl_document = "#{::File.dirname(__FILE__)}/wsdl/#{self.class.to_s.rpartition("::")[2].downcase}/#{Rails.env}.wsdl"
      @soap_client = Savon::Client.new do
        wsdl.document = wsdl_document
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackerific-0.1.2 lib/soap_client.rb
trackerific-0.1.1 lib/soap_client.rb