Skip to content

Commit

Permalink
feat: parse interaction _id from Pact Broker
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 29, 2019
1 parent e1fc347 commit 8d66a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pact/consumer_contract/interaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 = {}
Expand Down

0 comments on commit 8d66a84

Please sign in to comment.