class VCR::HttpStubbingAdapters::Excon::RequestHandler

Attributes

params[R]

Public Class Methods

new(params) click to toggle source
# File lib/vcr/http_stubbing_adapters/excon.rb, line 98
def initialize(params)
  @params = params
end

Public Instance Methods

handle() click to toggle source
# File lib/vcr/http_stubbing_adapters/excon.rb, line 102
def handle
  case
    when request_should_be_ignored?
      perform_real_request
    when stubbed_response
      stubbed_response
    when http_connections_allowed?
      record_interaction
    else
      raise_connections_disabled_error
  end
end