From 8d66a84e021662830b20ff697ef603f86c5d36df Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 26 Sep 2019 08:55:06 +1000 Subject: [PATCH] feat: parse interaction _id from Pact Broker --- lib/pact/consumer_contract/interaction.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = {}