Module: Rabbit::SOAP

Defined in:
lib/rabbit/soap/base.rb,
lib/rabbit/soap/driver.rb,
lib/rabbit/soap/server.rb

Defined Under Namespace

Classes: Driver, Server

Constant Summary collapse

NS =
"http://rabbit-shocker.org/ns/rabbit/0.0.1/"

Class Method Summary collapse

Class Method Details

.element_name(name) ⇒ Object


6
7
8
9
10
11
12
13
14
15
# File 'lib/rabbit/soap/base.rb', line 6

def element_name(name)
  case name
  when /[?!]$/
    name[0..-2]
  when /[=]$/
    "set_#{name[0..-2]}"
  else
    name
  end
end