Module: ResponseMate

Defined in:
lib/response_mate/core.rb,
lib/response_mate.rb,
lib/response_mate/cli.rb,
lib/response_mate/version.rb,
lib/response_mate/recorder.rb,
lib/response_mate/exporter.rb

Overview

The main module of the tool contains configuration code and some constants

Defined Under Namespace

Modules: Commands, Exporters Classes: CLI, Configuration, Connection, Environment, Exporter, Inspector, KeysNotFound, Manifest, OutputDirError, Recorder, Request, Tape

Constant Summary collapse

HTTP_METHODS =

Methods handled by response_mate

%w[GET POST PUT PATCH DELETE HEAD OPTIONS]
VERSION =

Gem version

'0.3.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


21
22
23
# File 'lib/response_mate/core.rb', line 21

def configuration
  @configuration
end

Class Method Details

.setup {|configuration| ... } ⇒ Object

Initializer method to set configuration values

Yields:


24
25
26
27
# File 'lib/response_mate/core.rb', line 24

def setup
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end