Sha256: c3ae04ba08ed31aee0bdd55d84728da1d7fdc4f184251b224071d49b3a784c15

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

module WashOut
  module WashWithSoap
    def self.included(base)
      
      base.class_eval do
        class <<self
          attr_accessor :wash_with_soap_map
        end
        
        def self.wash_with_soap(map)
          map.each do |method, params|
            params[:in]  = WashOut::Param.new(method, map[method][:in]) unless map[method][:in].is_a?(Param)
            params[:out] = WashOut::Param.new("#{method}_responce", map[method][:out]) unless map[method][:out].is_a?(Param)
          end
          
          self.wash_with_soap_map = map
          
          include WashOut::Dispatcher
        end
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wash_out-0.1 lib/wash_out/wash_with_soap.rb