Class: PactBroker::Api::Renderers::HtmlPactRenderer
- Inherits:
-
Object
- Object
- PactBroker::Api::Renderers::HtmlPactRenderer
- Defined in:
- lib/pact_broker/api/renderers/html_pact_renderer.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(pact) ⇒ HtmlPactRenderer
constructor
A new instance of HtmlPactRenderer.
Constructor Details
#initialize(pact) ⇒ HtmlPactRenderer
Returns a new instance of HtmlPactRenderer.
16 17 18 19 |
# File 'lib/pact_broker/api/renderers/html_pact_renderer.rb', line 16 def initialize pact @json_content = pact.json_content @pact = pact end |
Class Method Details
.call(pact) ⇒ Object
12 13 14 |
# File 'lib/pact_broker/api/renderers/html_pact_renderer.rb', line 12 def self.call pact new(pact).call end |
Instance Method Details
#call ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/pact_broker/api/renderers/html_pact_renderer.rb', line 21 def call "<html> <head>#{head}</head> <body> #{}#{html} </body> </html>" end |