Module: StubRequests

Extended by:
StubRequests, UriFor
Includes:
API, UriFor
Included in:
StubRequests
Defined in:
lib/stub_requests/api.rb,
lib/stub_requests/service.rb,
lib/stub_requests/version.rb,
lib/stub_requests/endpoint.rb,
lib/stub_requests/hash_util.rb,
lib/stub_requests/uri/scheme.rb,
lib/stub_requests/uri/suffix.rb,
lib/stub_requests/uri/builder.rb,
lib/stub_requests/stub_requests.rb,
lib/stub_requests/uri/validator.rb,
lib/stub_requests/webmock_builder.rb,
lib/stub_requests/service_registry.rb,
lib/stub_requests/endpoint_registry.rb,
lib/stub_requests/argument_validation.rb

Overview

Abstraction over WebMock to reduce duplication

Author:

Since:

  • 0.1.0

Defined Under Namespace

Modules: API, ArgumentValidation, HashUtil, URI Classes: Endpoint, EndpointNotFound, EndpointRegistry, Error, InvalidType, InvalidUri, Service, ServiceHaveEndpoints, ServiceNotFound, ServiceRegistry, UriSegmentMismatch, WebMockBuilder

Constant Summary collapse

VERSION =

Returns a version string

Returns:

  • (String)

    a version string

Since:

  • 0.1.0

"0.1.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from API

included, #register_service, #stub_endpoint

Instance Attribute Details

#loggerLogger

Returns the logger to use in the gem

Returns:

  • (Logger)

    the logger to use in the gem



79
80
81
# File 'lib/stub_requests/stub_requests.rb', line 79

def logger
  @logger
end

Instance Method Details

#versionString

The current version of the gem

Returns:

  • (String)

    version string, "1.0.0"

Since:

  • 0.1.0



87
88
89
# File 'lib/stub_requests/stub_requests.rb', line 87

def version
  VERSION
end