Module: Pact::Provider::Configuration::ConfigurationExtension
- Defined in:
- lib/pact/provider/configuration.rb
Instance Method Summary collapse
- #add_pact_verification(verification) ⇒ Object
- #pact_verifications ⇒ Object
- #provider ⇒ Object
- #provider=(provider) ⇒ Object
Instance Method Details
#add_pact_verification(verification) ⇒ Object
30 31 32 |
# File 'lib/pact/provider/configuration.rb', line 30 def add_pact_verification verification pact_verifications << verification end |
#pact_verifications ⇒ Object
34 35 36 |
# File 'lib/pact/provider/configuration.rb', line 34 def pact_verifications @pact_verifications ||= [] end |
#provider ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/pact/provider/configuration.rb', line 22 def provider if defined? @provider @provider else raise "Please configure your provider. See the Provider section in the README for examples." end end |
#provider=(provider) ⇒ Object
18 19 20 |
# File 'lib/pact/provider/configuration.rb', line 18 def provider= provider @provider = provider end |