Sha256: aad60604f255e4e8da9d20c24e64ac18ef313f1bbf73f9e5b8bf6e7a97ab5883

Contents?: true

Size: 212 Bytes

Versions: 2

Compression:

Stored size: 212 Bytes

Contents

module Pacto
  class Hook
    def initialize(&block)
      @hook = block
    end

    def process(contracts, request_signature, response)
      @hook.call contracts, request_signature, response
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.3.1 lib/pacto/core/hook.rb
pacto-0.3.0 lib/pacto/core/hook.rb