Class: Pact::MockService::Interactions::UpdatableInteractionsFilter

Inherits:
InteractionsFilter show all
Defined in:
lib/pact/mock_service/interactions/interactions_filter.rb

Instance Method Summary collapse

Methods inherited from InteractionsFilter

#index_of, #initialize

Constructor Details

This class inherits a constructor from Pact::MockService::Interactions::InteractionsFilter

Instance Method Details

#<<(interaction) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/pact/mock_service/interactions/interactions_filter.rb', line 38

def << interaction
   if (ndx = index_of(interaction))
      @interactions[ndx] = interaction
   else
      @interactions << interaction
   end
end