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, 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, pending_provider_tags = [], non_pending_provider_tags = [], head_consumer_tags = [], overall_latest = false, wip = 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
  @wip = wip
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

#wipObject (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_tagsObject



19
20
21
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 19

def consumer_tags
  head_consumer_tags
end

#overall_latest?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 23

def overall_latest?
  @overall_latest
end

#pending?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 27

def pending?
  pending
end

#wip?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/pact_broker/pacts/verifiable_pact.rb', line 31

def wip?
  wip
end