Method: Soaspec::RestHandler#initialize
- Defined in:
- lib/soaspec/exchange_handlers/rest_handler.rb
#initialize(name = self.class.to_s, options = {}) ⇒ RestHandler
Setup object to handle communicating with a particular SOAP WSDL
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/soaspec/exchange_handlers/rest_handler.rb', line 28 def initialize(name = self.class.to_s, = {}) raise "Base URL not set! Please set in class with 'base_url' method" unless base_url_value if name.is_a?(Hash) && == {} # If name is not set, use first parameter as the options hash = name name = self.class.to_s end super set_remove_keys(, i[api_username default_hash template_name]) = # Call this to verify any issues with options on creating object end |