Module: WashOut::Configurable::ClassMethods

Defined in:
lib/wash_out/configurable.rb

Instance Method Summary collapse

Instance Method Details

#soap_config=(obj) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/wash_out/configurable.rb', line 12

def soap_config=(obj)

  unless obj.is_a?(Hash)
    raise "Value needs to be a Hash."
  end

  if class_variable_defined?(:@@soap_config)
    class_variable_get(:@@soap_config).configure obj
  else
    class_variable_set :@@soap_config, WashOut::SoapConfig.new(obj)
  end
end