Sha256: 12c426b47132db504316bc04f3159e29e57a35be86999b45bd26617e0bdf63cc

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

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

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

    def self.wash_out_param_map
      @param_map
    end

    def self.wash_out_param_name
      @param_type_name ||= name.underscore
      @param_type_name

      if WashOut::Engine.camelize_wsdl.to_s == 'lower'
        @param_type_name = @param_type_name.camelize(:lower)
      elsif WashOut::Engine.camelize_wsdl
        @param_type_name = @param_type_name.camelize
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wash_out-0.5.2 lib/wash_out/type.rb
wash_out-0.4.2 lib/wash_out/type.rb