Module: RequestTagger

Defined in:
lib/request_tagger/http_magic.rb,
lib/request_tagger.rb,
lib/request_tagger/setup.rb,
lib/request_tagger/errors.rb,
lib/request_tagger/version.rb,
lib/request_tagger/tag_requests.rb,
lib/request_tagger/active_record_magic.rb

Overview

This code is heavily inspired by RSpec’s ‘allow_any_instance_of` and the RSpec source code was used as reference material during development. github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/any_instance/recorder.rb

Thanks, RSpec devs. github.com/rspec/rspec/blob/master/LICENSE.md

Defined Under Namespace

Modules: TagRequests Classes: ActiveRecordMagic, AlreadyStartedError, HttpMagic, Setup

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.start(options = {}) ⇒ Object



12
13
14
# File 'lib/request_tagger.rb', line 12

def self.start(options = {})
  Setup.start(options)
end

.stopObject



16
17
18
# File 'lib/request_tagger.rb', line 16

def self.stop
  Setup.stop
end