Class: PactBroker::Api::Renderers::IntegrationsDotRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/api/renderers/integrations_dot_renderer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(integrations) ⇒ IntegrationsDotRenderer

Returns a new instance of IntegrationsDotRenderer.



5
6
7
# File 'lib/pact_broker/api/renderers/integrations_dot_renderer.rb', line 5

def initialize(integrations)
  @integrations = integrations
end

Class Method Details

.call(integrations) ⇒ Object



9
10
11
# File 'lib/pact_broker/api/renderers/integrations_dot_renderer.rb', line 9

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

Instance Method Details

#callObject



13
14
15
16
17
18
# File 'lib/pact_broker/api/renderers/integrations_dot_renderer.rb', line 13

def call
  "digraph { ranksep=3; ratio=auto; overlap=false; node [  shape = plaintext, fontname = Helvetica ];
#{integrations_graph}
}
"
end