Class: StubRequests::Configuration

Inherits:
Object
  • Object
show all
Includes:
StubRequests::Concerns::Property
Defined in:
lib/stub_requests/configuration.rb

Overview

Class Configuration contains gem configuration

Author:

Since:

  • 0.1.2

Instance Attribute Summary collapse

Method Summary

Methods included from StubRequests::Concerns::Property

included

Methods included from StubRequests::Concerns::ArgumentValidation

#validate!, #validate_type!

Instance Attribute Details

#jaro_optionsHash

Returns options to use for jaro winkler

Returns:

  • (Hash)

    options to use for jaro winkler



28
29
30
31
32
# File 'lib/stub_requests/configuration.rb', line 28

property :jaro_options, type: Hash, default: {
  weight: 0.1,
  threshold: 0.7,
  ignore_case: true,
}

#loggerLogger

Returns any object that responds to the standard logger methods

Returns:

  • (Logger)

    any object that responds to the standard logger methods



36
# File 'lib/stub_requests/configuration.rb', line 36

property :logger, type: Logger

#record_stubsHash

Returns record_stubs set to true to keep track of stubs

Returns:

  • (Hash)

    record_stubs set to true to keep track of stubs



24
# File 'lib/stub_requests/configuration.rb', line 24

property :record_stubs, type: [TrueClass, FalseClass], default: false