lib/soaspec/exchange_handlers/exchange_handler.rb in soaspec-0.0.50 vs lib/soaspec/exchange_handlers/exchange_handler.rb in soaspec-0.0.51

- old
+ new

@@ -11,10 +11,17 @@ # Retrieve the name of the template file to be used in the API request attr_reader :template_name # Explicitly defined elements for which a path has been predefined def elements - @elements || [] + public_methods.select { |i| i[/__custom_path_.+/] } + end + + # Set the default hash representing data to be used in making a request + # This will set the @request_option instance variable too + def default_hash=(hash) + @request_option = :hash + @default_hash = Soaspec.always_use_keys? ? hash.transform_keys_to_symbols : hash end # Set instance variable name # @param [String, Symbol] name Name used when describing API test # @param [Hash] options Parameters defining handler. Used in descendants \ No newline at end of file