Class: VCR::RequestMatcherRegistry::Matcher

Inherits:
Struct
  • Object
show all
Defined in:
lib/vcr/request_matcher_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#callableObject

Returns the value of attribute callable

Returns:

  • (Object)

    the current value of callable



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

def callable
  @callable
end

Instance Method Details

#matches?(request_1, request_2) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/vcr/request_matcher_registry.rb', line 13

def matches?(request_1, request_2)
  callable.call(request_1, request_2)
end