lib/peddler/vcr_matcher.rb in peddler-2.1.1 vs lib/peddler/vcr_matcher.rb in peddler-2.3.0

- old
+ new

@@ -2,27 +2,27 @@ module Peddler # A custom matcher that can be used to record MWS interactions when # writing integration tests class VCRMatcher - # @api private + # @!visibility private TRANSIENT_PARAMS = %w[ Signature Timestamp StartDate CreatedAfter QueryStartDateTime ].freeze - # @api private + # @!visibility private SELLER_PARAMS = %w[ AWSAccessKeyId SellerId ].freeze class << self - # @api private + # @!visibility private def call(*requests) new(*requests).compare end - # @api private + # @!visibility private def ignored_params @ignored_params ||= TRANSIENT_PARAMS.dup end # Ignore seller specific attributes when recording @@ -31,18 +31,18 @@ ignored_params.concat(SELLER_PARAMS) ignored_params.uniq! end end - # @api private + # @!visibility private attr_reader :requests - # @api private + # @!visibility private def initialize(*requests) @requests = requests end - # @api private + # @!visibility private def compare compare_uris && compare_bodies end private