Skip to content

Commit 8d66a84

Browse files
committed
feat: parse interaction _id from Pact Broker
1 parent e1fc347 commit 8d66a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pact/consumer_contract/interaction.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Pact
55
class Interaction
66
include ActiveSupportSupport
77

8-
attr_accessor :description, :request, :response, :provider_state, :provider_states, :metadata
8+
attr_accessor :description, :request, :response, :provider_state, :provider_states, :metadata, :_id
99

1010
def initialize attributes = {}
1111
@description = attributes[:description]
@@ -14,6 +14,7 @@ def initialize attributes = {}
1414
@provider_state = attributes[:provider_state] || attributes[:providerState]
1515
@provider_states = attributes[:provider_states]
1616
@metadata = attributes[:metadata]
17+
@_id = attributes[:_id]
1718
end
1819

1920
def self.from_hash hash, options = {}

0 commit comments

Comments
 (0)