Method: Exlibris::Primo::WebService::Client::SoapActions#method_missing
- Defined in:
- lib/exlibris/primo/web_service/client/base/soap_actions.rb
#method_missing(method, *args, &block) ⇒ Object
Define methods for SOAP actions. SOAP actions take a single String argument, request_xml, which is set as the body of the SOAP request
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/exlibris/primo/web_service/client/base/soap_actions.rb', line 34 def method_missing(method, *args, &block) if(soap_actions.include? method) self.class.send(:define_method, method) { |request_xml| client.call(method, message: request_xml) } send method, *args, &block else super end end |