module PactBroker::Pacts::GenerateInteractionSha
Public Class Methods
call(interaction_hash)
click to toggle source
# File lib/pact_broker/pacts/generate_interaction_sha.rb, line 9 def self.call interaction_hash Digest::SHA1.hexdigest(order_hash_keys(interaction_hash).to_json) end
Public Instance Methods
generate_interaction_sha(interaction_hash)
click to toggle source
# File lib/pact_broker/pacts/generate_interaction_sha.rb, line 13 def generate_interaction_sha(interaction_hash) GenerateInteractionSha.call(interaction_hash) end