Class: WashOut::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/wash_out/type.rb

Class Method Summary collapse

Class Method Details

.map(value) ⇒ Object

Raises:

  • (RuntimeError)


7
8
9
10
# File 'lib/wash_out/type.rb', line 7

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

.type_name(value) ⇒ Object



3
4
5
# File 'lib/wash_out/type.rb', line 3

def self.type_name(value)
  @param_type_name = value
end

.wash_out_param_mapObject



12
13
14
# File 'lib/wash_out/type.rb', line 12

def self.wash_out_param_map
  @param_map
end

.wash_out_param_nameObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/wash_out/type.rb', line 16

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

  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
  
  @param_type_name
end