Class: Pact::Provider::Configuration::ServiceProviderDSL
- Inherits:
-
Object
- Object
- Pact::Provider::Configuration::ServiceProviderDSL
- Extended by:
- DSL
- Defined in:
- lib/pact/provider/configuration.rb
Instance Attribute Summary collapse
-
#app_block ⇒ Object
Returns the value of attribute app_block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #create_pact_verification(consumer_name, options, &block) ⇒ Object
- #finalize ⇒ Object
-
#initialize(name) ⇒ ServiceProviderDSL
constructor
A new instance of ServiceProviderDSL.
Methods included from DSL
Constructor Details
#initialize(name) ⇒ ServiceProviderDSL
Returns a new instance of ServiceProviderDSL.
92 93 94 95 |
# File 'lib/pact/provider/configuration.rb', line 92 def initialize name @name = name @app_block = nil end |
Instance Attribute Details
#app_block ⇒ Object
Returns the value of attribute app_block.
90 91 92 |
# File 'lib/pact/provider/configuration.rb', line 90 def app_block @app_block end |
#name ⇒ Object
Returns the value of attribute name.
90 91 92 |
# File 'lib/pact/provider/configuration.rb', line 90 def name @name end |
Instance Method Details
#create_pact_verification(consumer_name, options, &block) ⇒ Object
107 108 109 |
# File 'lib/pact/provider/configuration.rb', line 107 def create_pact_verification consumer_name, , &block PactVerification.build(consumer_name, , &block) end |
#finalize ⇒ Object
111 112 113 114 |
# File 'lib/pact/provider/configuration.rb', line 111 def finalize validate create_service_provider end |