lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.66 vs lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.67

- old
+ new

@@ -143,15 +143,18 @@ merged_options[:headers].merge! parse_headers merged_options.merge!(options) @resource = RestClient::Resource.new(base_url_value, merged_options) # @resource[url_extension].get end + # Convert snakecase to PascalCase def convert_to_pascal_case(key) + return key if /[[:upper:]]/ =~ key[0] # If first character already capital, don't do conversion key.split('_').map(&:capitalize).join end - # @return Whether to convert each key in the request to PascalCase + # Whether to convert each key in the request to PascalCase # It will also auto convert simple XPath, JSONPath where '//' or '..' not specified + # @return Whether to convert to PascalCase def pascal_keys? false end # @return [Hash] \ No newline at end of file