Class: Pact::Provider::World
- Inherits:
-
Object
- Object
- Pact::Provider::World
- Defined in:
- lib/pact/provider/world.rb
Instance Attribute Summary collapse
-
#failed_examples ⇒ Object
Returns the value of attribute failed_examples.
-
#pact_sources ⇒ Object
Returns the value of attribute pact_sources.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
- #add_pact_uri_source(pact_uri_source) ⇒ Object
- #add_pact_verification(verification) ⇒ Object
- #pact_urls ⇒ Object
- #pact_verifications ⇒ Object
- #provider_states ⇒ Object
Instance Attribute Details
#failed_examples ⇒ Object
Returns the value of attribute failed_examples.
17 18 19 |
# File 'lib/pact/provider/world.rb', line 17 def failed_examples @failed_examples end |
#pact_sources ⇒ Object
Returns the value of attribute pact_sources.
17 18 19 |
# File 'lib/pact/provider/world.rb', line 17 def pact_sources @pact_sources end |
#verbose ⇒ Object
Returns the value of attribute verbose.
17 18 19 |
# File 'lib/pact/provider/world.rb', line 17 def verbose @verbose end |
Instance Method Details
#add_pact_uri_source(pact_uri_source) ⇒ Object
35 36 37 |
# File 'lib/pact/provider/world.rb', line 35 def add_pact_uri_source pact_uri_source pact_uri_sources << pact_uri_source end |
#add_pact_verification(verification) ⇒ Object
23 24 25 |
# File 'lib/pact/provider/world.rb', line 23 def add_pact_verification verification pact_verifications << verification end |
#pact_urls ⇒ Object
31 32 33 |
# File 'lib/pact/provider/world.rb', line 31 def pact_urls (pact_verifications.collect(&:uri) + pact_uris_from_pact_uri_sources).compact end |
#pact_verifications ⇒ Object
27 28 29 |
# File 'lib/pact/provider/world.rb', line 27 def pact_verifications @pact_verifications ||= [] end |
#provider_states ⇒ Object
19 20 21 |
# File 'lib/pact/provider/world.rb', line 19 def provider_states @provider_states_proxy ||= Pact::Provider::State::ProviderStateProxy.new end |