Class: Rabbit::SOAP::Driver

Inherits:
SOAP::RPC::Driver
  • Object
show all
Defined in:
lib/rabbit/soap/driver.rb

Constant Summary collapse

APP_NAME =
"RabbitSoapDriver"
@@method_infos =
[]

Instance Method Summary collapse

Constructor Details

#initialize(end_point, soap_action = nil) ⇒ Driver

Returns a new instance of Driver.



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/rabbit/soap/driver.rb', line 19

def initialize(end_point, soap_action=nil)
  super(end_point, Rabbit::SOAP::NS, soap_action)

  @@method_infos.each do |info|
    add_method_as(*info)
  end

  _public_level = public_level
  available_interfaces.each do |name, level, arity|
    unless (_public_level & level).zero?
      info = [name, SOAP.element_name(name)]
      info.concat(Utils.arg_list(arity))
      add_method_as(*info)
    end
  end
end

Instance Method Details

#log_dir=(new_value) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/rabbit/soap/driver.rb', line 36

def log_dir=(new_value)
  if new_value.nil?
    self.wiredump_file_base = nil
  else
    self.wiredump_file_base = File.join(new_value, APP_NAME)
  end
end