lib/soaspec.rb in soaspec-0.1.2 vs lib/soaspec.rb in soaspec-0.1.3
- old
+ new
@@ -30,13 +30,17 @@
require 'soaspec/wsdl_generator'
# Gem for handling SOAP and REST api tests
module Soaspec
+ @template_folder = 'template'
+
class << self
# Specify whether to see params sent to and retrieved from oauth. This will put password in log file, only recommended for debugging
attr_writer :debug_oauth
+ # Folder used to store templates for API calls
+ attr_accessor :template_folder
# Folder used to store credentials
# Used in auth2_file command
# @param [String] folder
def credentials_folder=(folder)
@@ -72,9 +76,14 @@
# @return [Boolean] Whether to see params sent to & received from oauth URL
def debug_oauth?
@debug_oauth || false
end
+
+ # @return [String] Folder used to store templates for API calls
+ # def template_folder
+ # @template_folder || 'template'
+ # end
# Whether to log all API traffic
def log_api_traffic=(set)
@log_api_traffic = set
RestClient.log = nil unless set