Method: Soaspec::ExchangeHandler#initialize
- Defined in:
- lib/soaspec/exchange_handlers/exchange_handler.rb
#initialize(name = self.class.to_s, _options = {}) ⇒ ExchangeHandler
Set instance variable name
34 35 36 37 38 39 40 41 42 |
# File 'lib/soaspec/exchange_handlers/exchange_handler.rb', line 34 def initialize(name = self.class.to_s, = {}) use @request_option = :hash raise ArgumentError, 'Cannot define both template_name and default_hash' if respond_to?(:template_name_value) && respond_to?(:default_hash_value) @template_name = respond_to?(:template_name_value) ? template_name_value : '' @default_hash = respond_to?(:default_hash_value) ? default_hash_value : {} @name = name end |