Class: Peddler::Test::VCRMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/peddler/test/vcr_matcher.rb

Constant Summary collapse

TRANSIENT_PARAMS =
%w( AWSAccessKeyId SellerId Signature Timestamp
StartDate CreatedAfter QueryStartDateTime ).freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(req_1, req_2) ⇒ VCRMatcher

Returns a new instance of VCRMatcher.



13
14
15
16
# File 'lib/peddler/test/vcr_matcher.rb', line 13

def initialize(req_1, req_2)
  @req_1 = req_1
  @req_2 = req_2
end

Instance Attribute Details

#req_1Object (readonly)

Returns the value of attribute req_1.



7
8
9
# File 'lib/peddler/test/vcr_matcher.rb', line 7

def req_1
  @req_1
end

#req_2Object (readonly)

Returns the value of attribute req_2.



7
8
9
# File 'lib/peddler/test/vcr_matcher.rb', line 7

def req_2
  @req_2
end

Class Method Details

.call(req_1, req_2) ⇒ Object



9
10
11
# File 'lib/peddler/test/vcr_matcher.rb', line 9

def self.call(req_1, req_2)
  new(req_1, req_2).compare
end

Instance Method Details

#compareObject



18
19
20
# File 'lib/peddler/test/vcr_matcher.rb', line 18

def compare
  compare_uri && compare_body
end