Class: Otis::SoapClient

Inherits:
Client
  • Object
show all
Defined in:
lib/otis/soap_client.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{log: false}

Instance Method Summary collapse

Methods included from Hooks

included

Constructor Details

#initialize(map, wsdl, options = DEFAULT_OPTIONS) ⇒ SoapClient

Returns a new instance of SoapClient.



5
6
7
8
9
# File 'lib/otis/soap_client.rb', line 5

def initialize(map, wsdl, options = DEFAULT_OPTIONS)
  @routes = map.routes
  options.merge!(wsdl: wsdl)
  @client = Savon.client(options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Otis::Client

Instance Method Details

#operationsObject



11
12
13
# File 'lib/otis/soap_client.rb', line 11

def operations
  @client.operations
end