Sha256: d3984bb96588a6bc9d36549d3096febd752406925ba8d5f936014fa29bee4f87

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

module WashOut
  class Type
    class <<self
      def type_name(value)
        @param_type_name = value.to_s
      end

      def map(value)
        raise RuntimeError, "Wrong definition: #{value.inspect}" unless value.is_a?(Hash)
        @param_map = value
      end

      def wash_out_param_map
        @param_map
      end

      def wash_out_param_name(soap_config = nil)
        WashOut.normalize(@param_type_name || name.underscore.gsub('/', '.'), soap_config)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wash_out-0.10.0.beta.1 lib/wash_out/type.rb