Class: Pact::MockService::Interactions::InteractionDiffMessage
- Inherits:
-
Object
- Object
- Pact::MockService::Interactions::InteractionDiffMessage
- Defined in:
- lib/pact/mock_service/interactions/interaction_diff_message.rb
Instance Method Summary collapse
-
#initialize(previous_interaction, new_interaction) ⇒ InteractionDiffMessage
constructor
A new instance of InteractionDiffMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(previous_interaction, new_interaction) ⇒ InteractionDiffMessage
Returns a new instance of InteractionDiffMessage.
9 10 11 12 |
# File 'lib/pact/mock_service/interactions/interaction_diff_message.rb', line 9 def initialize previous_interaction, new_interaction @previous_interaction = previous_interaction @new_interaction = new_interaction end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/pact/mock_service/interactions/interaction_diff_message.rb', line 14 def to_s "An interaction with same description (#{new_interaction.description.inspect}) and provider state (#{new_interaction.provider_state.inspect}) but a different #{differences} has already been used. Please use a different description or provider state, or remove any random data in the interaction." end |