Class: Pact::Provider::Configuration::PactVerification
- Inherits:
-
Object
- Object
- Pact::Provider::Configuration::PactVerification
- Extended by:
- DSL
- Defined in:
- lib/pact/provider/configuration.rb
Instance Attribute Summary collapse
-
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
-
#pact_uri ⇒ Object
Returns the value of attribute pact_uri.
-
#ref ⇒ Object
Returns the value of attribute ref.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(consumer_name, options = {}) ⇒ PactVerification
constructor
A new instance of PactVerification.
Methods included from 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, = {} @consumer_name = consumer_name @ref = .fetch(:ref, :head) @pact_uri = nil end |
Instance Attribute Details
#consumer_name ⇒ Object
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_uri ⇒ Object
Returns the value of attribute pact_uri.
55 56 57 |
# File 'lib/pact/provider/configuration.rb', line 55 def pact_uri @pact_uri end |
#ref ⇒ Object
Returns the value of attribute ref.
55 56 57 |
# File 'lib/pact/provider/configuration.rb', line 55 def ref @ref end |
Instance Method Details
#finalize ⇒ Object
69 70 71 72 |
# File 'lib/pact/provider/configuration.rb', line 69 def finalize validate create_pact_verification end |