lib/soaspec/exchange_handlers/exchange_handler.rb in soaspec-0.0.44 vs lib/soaspec/exchange_handlers/exchange_handler.rb in soaspec-0.0.45
- old
+ new
@@ -8,10 +8,10 @@
attr_reader :template_name
# Set instance variable name
# @param [String, Symbol] name Name used when describing API test
# @param [Hash] options Parameters defining handler. Used in descendants
- def initialize(name, options = {})
+ def initialize(name = self.class.to_s, options = {})
use
@name = name
end
# Set Api handler used by Exchange class to this handler
\ No newline at end of file