Class: PactBroker::Pacts::VerifiablePact

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pact_broker/pacts/verifiable_pact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false)
  super(pact)
  @pending = pending
  @pending_provider_tags = pending_provider_tags
  @non_pending_provider_tags = non_pending_provider_tags
  @head_consumer_tags = head_consumer_tags
  @overall_latest = overall_latest
end

Instance Attribute Details

#head_consumer_tagsObject (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
  @head_consumer_tags
end

#non_pending_provider_tagsObject (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
  @non_pending_provider_tags
end

#pendingObject (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_tagsObject (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
  @pending_provider_tags
end

Instance Method Details

#consumer_tagsObject



17
18
19
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 17

def consumer_tags
  head_consumer_tags
end

#overall_latest?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 21

def overall_latest?
  @overall_latest
end

#pending?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 25

def pending?
  pending
end