Module: Interpol

Extended by:
Interpol
Included in:
Interpol
Defined in:
lib/interpol.rb,
lib/interpol/errors.rb,
lib/interpol/version.rb,
lib/interpol/endpoint.rb,
lib/interpol/stub_app.rb,
lib/interpol/test_helper.rb,
lib/interpol/configuration.rb,
lib/interpol/documentation.rb,
lib/interpol/dynamic_struct.rb,
lib/interpol/documentation_app.rb,
lib/interpol/request_params_parser.rb,
lib/interpol/request_body_validator.rb,
lib/interpol/response_schema_validator.rb,
lib/interpol/sinatra/request_params_parser.rb

Overview

The Interpol namespace. Provides only the default configuration. Each of the tools is self-contained and should be required independently.

Defined Under Namespace

Modules: DefinitionFinder, Documentation, DocumentationApp, DynamicStruct, HashFetcher, Sinatra, StubApp, TestHelper Classes: Configuration, ConfigurationError, Endpoint, EndpointDefinition, EndpointExample, Error, InvalidPathParamsError, MultipleEndpointDefinitionsFoundError, NoEndpointDefinitionFoundError, ParamParser, RequestBodyValidator, RequestParamsParser, ResponseSchemaValidator, StatusCodeMatcher, StatusCodeMatcherArgumentError, UnsupportedTypeError, ValidationError

Constant Summary collapse

CannotBeParsedError =

Raised when a parameter value cannot be parsed.

Class.new(ArgumentError)
InvalidParamsDefinitionError =

Raised when a params definition is invalid.

Class.new(ArgumentError)
VERSION =
"0.11.0"

Instance Method Summary collapse

Instance Method Details

#default_configuration(&block) ⇒ Object



9
10
11
12
# File 'lib/interpol.rb', line 9

def default_configuration(&block)
  block ||= lambda { |c| }
  Configuration.default.tap(&block)
end