Class: Pact::Provider::World

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/provider/world.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#failed_examplesObject

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_sourcesObject

Returns the value of attribute pact_sources.



17
18
19
# File 'lib/pact/provider/world.rb', line 17

def pact_sources
  @pact_sources
end

#verboseObject

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_urlsObject



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_verificationsObject



27
28
29
# File 'lib/pact/provider/world.rb', line 27

def pact_verifications
  @pact_verifications ||= []
end

#provider_statesObject



19
20
21
# File 'lib/pact/provider/world.rb', line 19

def provider_states
  @provider_states_proxy ||= Pact::Provider::State::ProviderStateProxy.new
end