Class: Peddler::Test::VCRMatcher
- Inherits:
-
Object
- Object
- Peddler::Test::VCRMatcher
- 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
-
#req_1 ⇒ Object
readonly
Returns the value of attribute req_1.
-
#req_2 ⇒ Object
readonly
Returns the value of attribute req_2.
Class Method Summary collapse
Instance Method Summary collapse
- #compare ⇒ Object
-
#initialize(req_1, req_2) ⇒ VCRMatcher
constructor
A new instance of VCRMatcher.
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_1 ⇒ Object (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_2 ⇒ Object (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
#compare ⇒ Object
18 19 20 |
# File 'lib/peddler/test/vcr_matcher.rb', line 18 def compare compare_uri && compare_body end |