Class: PactBroker::Pacts::VerifiablePact
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PactBroker::Pacts::VerifiablePact
- Defined in:
- lib/pact_broker/pacts/verifiable_pact.rb
Instance Attribute Summary collapse
-
#head_consumer_tags ⇒ Object
readonly
Returns the value of attribute head_consumer_tags.
-
#non_pending_provider_tags ⇒ Object
readonly
Returns the value of attribute non_pending_provider_tags.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
-
#pending_provider_tags ⇒ Object
readonly
Returns the value of attribute pending_provider_tags.
Instance Method Summary collapse
- #consumer_tags ⇒ Object
-
#initialize(pact, pending, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false) ⇒ VerifiablePact
constructor
A new instance of VerifiablePact.
- #overall_latest? ⇒ Boolean
- #pending? ⇒ Boolean
Constructor Details
#initialize(pact, pending, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false) ⇒ VerifiablePact
Returns a new instance of VerifiablePact.
8 9 10 11 12 13 14 15 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 8 def initialize(pact, pending, = [], = [], = [], overall_latest = false) super(pact) @pending = pending @pending_provider_tags = @non_pending_provider_tags = @head_consumer_tags = @overall_latest = overall_latest end |
Instance Attribute Details
#head_consumer_tags ⇒ Object (readonly)
Returns the value of attribute head_consumer_tags.
6 7 8 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 6 def @head_consumer_tags end |
#non_pending_provider_tags ⇒ Object (readonly)
Returns the value of attribute non_pending_provider_tags.
6 7 8 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 6 def @non_pending_provider_tags end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
6 7 8 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 6 def pending @pending end |
#pending_provider_tags ⇒ Object (readonly)
Returns the value of attribute pending_provider_tags.
6 7 8 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 6 def @pending_provider_tags end |
Instance Method Details
#consumer_tags ⇒ Object
17 18 19 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 17 def end |
#overall_latest? ⇒ Boolean
21 22 23 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 21 def overall_latest? @overall_latest end |
#pending? ⇒ Boolean
25 26 27 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 25 def pending? pending end |