Class: Pact::Doc::Markdown::ConsumerContractRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/doc/markdown/consumer_contract_renderer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(consumer_contract) ⇒ ConsumerContractRenderer

Returns a new instance of ConsumerContractRenderer.



10
11
12
# File 'lib/pact/doc/markdown/consumer_contract_renderer.rb', line 10

def initialize consumer_contract
  @consumer_contract = consumer_contract
end

Class Method Details

.call(consumer_contract) ⇒ Object



14
15
16
# File 'lib/pact/doc/markdown/consumer_contract_renderer.rb', line 14

def self.call consumer_contract
  new(consumer_contract).call
end

Instance Method Details

#callObject



18
19
20
# File 'lib/pact/doc/markdown/consumer_contract_renderer.rb', line 18

def call
  title + summaries_title + summaries + interactions_title + full_interactions
end