Module: Pact::MockService::Interactions

Defined in:
lib/pact/mock_service/interactions/verification.rb,
lib/pact/mock_service/interactions/actual_interactions.rb,
lib/pact/mock_service/interactions/interactions_filter.rb,
lib/pact/mock_service/interactions/interaction_mismatch.rb,
lib/pact/mock_service/interactions/expected_interactions.rb,
lib/pact/mock_service/interactions/verified_interactions.rb,
lib/pact/mock_service/interactions/candidate_interactions.rb,
lib/pact/mock_service/interactions/interaction_diff_message.rb

Defined Under Namespace

Classes: ActualInteractions, CandidateInteractions, ExpectedInteractions, InteractionDiffMessage, InteractionMismatch, InteractionsFilter, MergingInteractionsFilter, UpdatableInteractionsFilter, Verification, VerifiedInteractions

Class Method Summary collapse

Class Method Details

.filter(existing_interactions, pactfile_write_mode) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/pact/mock_service/interactions/interactions_filter.rb', line 16

def self.filter existing_interactions, pactfile_write_mode
  if pactfile_write_mode == :update
    UpdatableInteractionsFilter.new(existing_interactions)
  elsif pactfile_write_mode == :merge
    MergingInteractionsFilter.new(existing_interactions)
  else
    existing_interactions
  end
end