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.
-
#wip ⇒ Object
readonly
Returns the value of attribute wip.
Instance Method Summary collapse
- #consumer_tags ⇒ Object
-
#initialize(pact, pending, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false, wip = false) ⇒ VerifiablePact
constructor
TODO refactor this constructor.
- #overall_latest? ⇒ Boolean
- #pending? ⇒ Boolean
- #wip? ⇒ Boolean
Constructor Details
#initialize(pact, pending, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false, wip = false) ⇒ VerifiablePact
TODO refactor this constructor
9 10 11 12 13 14 15 16 17 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 9 def initialize(pact, pending, = [], = [], = [], overall_latest = false, wip = false) super(pact) @pending = pending @pending_provider_tags = @non_pending_provider_tags = @head_consumer_tags = @overall_latest = overall_latest @wip = wip 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 |
#wip ⇒ Object (readonly)
Returns the value of attribute wip.
6 7 8 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 6 def wip @wip end |
Instance Method Details
#consumer_tags ⇒ Object
19 20 21 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 19 def end |
#overall_latest? ⇒ Boolean
23 24 25 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 23 def overall_latest? @overall_latest end |
#pending? ⇒ Boolean
27 28 29 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 27 def pending? pending end |
#wip? ⇒ Boolean
31 32 33 |
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 31 def wip? wip end |