Class: PactBroker::Verifications::SummaryForConsumerVersion
- Inherits:
-
Object
- Object
- PactBroker::Verifications::SummaryForConsumerVersion
- Defined in:
- lib/pact_broker/verifications/summary_for_consumer_version.rb
Instance Attribute Summary collapse
-
#verifications ⇒ Object
readonly
Returns the value of attribute verifications.
Instance Method Summary collapse
-
#initialize(verifications, pacts) ⇒ SummaryForConsumerVersion
constructor
A new instance of SummaryForConsumerVersion.
- #provider_summary ⇒ Object
- #success ⇒ Object
Constructor Details
#initialize(verifications, pacts) ⇒ SummaryForConsumerVersion
Returns a new instance of SummaryForConsumerVersion.
7 8 9 10 |
# File 'lib/pact_broker/verifications/summary_for_consumer_version.rb', line 7 def initialize verifications, pacts @verifications = verifications @pacts = pacts end |
Instance Attribute Details
#verifications ⇒ Object (readonly)
Returns the value of attribute verifications.
5 6 7 |
# File 'lib/pact_broker/verifications/summary_for_consumer_version.rb', line 5 def verifications @verifications end |
Instance Method Details
#provider_summary ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/pact_broker/verifications/summary_for_consumer_version.rb', line 16 def provider_summary OpenStruct.new( successful: successful, failed: failed, unknown: unknown ) end |
#success ⇒ Object
12 13 14 |
# File 'lib/pact_broker/verifications/summary_for_consumer_version.rb', line 12 def success successful.count == pacts.count end |