Sha256: 4b77791ddf41a65955f4d0ae75aae7c1428675f95eb88e79052074d8af9789f3
Contents?: true
Size: 909 Bytes
Versions: 8
Compression:
Stored size: 909 Bytes
Contents
module Soaspec # Has basic methods common for methods defining RSpec tests in YAML class Tester # Retrieve the name of the template file to be used in the API request attr_reader :template_name # Set instance variable name # @param [String, Symbol] name Name used when describing API test # @param [Hash] options Parameters defining def initialize(name, options) @name = name end # Sets api handler variable globally. This is used in 'Exchange' class # @return [String] Name set upon initialisation def to_s Soaspec::Environment.api_handler = self @name end # Set the request option type and the template name # @param [String] name Name of file inside 'template' folder excluding extension def template_name=(name) @request_option = :template @template_name = name end end end
Version data entries
8 entries across 8 versions & 1 rubygems