diff --git a/lib/pact/consumer_contract/interaction.rb b/lib/pact/consumer_contract/interaction.rb index 0dbd09f..40e9cd8 100644 --- a/lib/pact/consumer_contract/interaction.rb +++ b/lib/pact/consumer_contract/interaction.rb @@ -5,7 +5,7 @@ module Pact class Interaction include ActiveSupportSupport - attr_accessor :description, :request, :response, :provider_state, :provider_states, :metadata + attr_accessor :description, :request, :response, :provider_state, :provider_states, :metadata, :_id def initialize attributes = {} @description = attributes[:description] @@ -14,6 +14,7 @@ def initialize attributes = {} @provider_state = attributes[:provider_state] || attributes[:providerState] @provider_states = attributes[:provider_states] @metadata = attributes[:metadata] + @_id = attributes[:_id] end def self.from_hash hash, options = {}