Class: Pact::Provider::Configuration::PactVerification

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/pact/provider/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

build, dsl

Constructor Details

#initialize(consumer_name, options = {}) ⇒ PactVerification

Returns a new instance of PactVerification.



57
58
59
60
61
# File 'lib/pact/provider/configuration.rb', line 57

def initialize consumer_name, options = {}
  @consumer_name = consumer_name
  @ref = options.fetch(:ref, :head)
  @pact_uri = nil
end

Instance Attribute Details

#consumer_nameObject

Returns the value of attribute consumer_name.



55
56
57
# File 'lib/pact/provider/configuration.rb', line 55

def consumer_name
  @consumer_name
end

#pact_uriObject

Returns the value of attribute pact_uri.



55
56
57
# File 'lib/pact/provider/configuration.rb', line 55

def pact_uri
  @pact_uri
end

#refObject

Returns the value of attribute ref.



55
56
57
# File 'lib/pact/provider/configuration.rb', line 55

def ref
  @ref
end

Instance Method Details

#finalizeObject



69
70
71
72
# File 'lib/pact/provider/configuration.rb', line 69

def finalize
  validate
  create_pact_verification
end